{"id":28972789,"url":"https://github.com/textcortex/hemingwai-examples","last_synced_at":"2025-10-20T08:13:01.414Z","repository":{"id":50597919,"uuid":"374689638","full_name":"textcortex/hemingwai-examples","owner":"textcortex","description":"This repo contains samples from Natural Language Generation (NLG) API TextCortex AI, namely Hemingwai. Generate blog articles, product descriptions, ad copies, emails and more with a single POST Request.","archived":false,"fork":false,"pushed_at":"2022-11-02T10:09:19.000Z","size":26,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-10T12:05:53.929Z","etag":null,"topics":["ai","artificial-intelligence","deep-learning","neural-networks","nlg","text-generation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/textcortex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-07T14:10:15.000Z","updated_at":"2022-11-02T18:55:34.000Z","dependencies_parsed_at":"2022-08-25T18:22:06.474Z","dependency_job_id":null,"html_url":"https://github.com/textcortex/hemingwai-examples","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/textcortex/hemingwai-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textcortex%2Fhemingwai-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textcortex%2Fhemingwai-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textcortex%2Fhemingwai-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textcortex%2Fhemingwai-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/textcortex","download_url":"https://codeload.github.com/textcortex/hemingwai-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textcortex%2Fhemingwai-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261658590,"owners_count":23191089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","artificial-intelligence","deep-learning","neural-networks","nlg","text-generation"],"created_at":"2025-06-24T11:08:36.689Z","updated_at":"2025-10-20T08:12:56.360Z","avatar_url":"https://github.com/textcortex.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hemingwai-examples\nThis repo contains examples regarding TextCortex API namely; Hemingwai.\n\nTextcortex AI uses fine tuned models for application specific needs. Accessing them is as easy as making an API call.\n\n## How To Generate Content:\n1. Signup at https://textcortex.com\n2. Sign-in and click on account on top right.\n3. Go to API Key section and copy your key.\n4. Make a POST request to https://api.textcortex.com/hemingwai/generate_text_v3\n\n### Types Of Content That Can Be Generated with TextCortex API:\n- Generate Product Descriptions\n- Generate Blog Articles\n- Generate Meta Descriptions\n- Generate Instagram Captions\n- Generate PPC Ads\n- Generate Email Body\n- Generate Email Subject\n\n### Here is an example POST request for generating Product Descriptions:\n\n```\nimport requests\nimport json\n\nurl = \"https://api.textcortex.com/hemingwai/generate_text_v3\"\n\npayload = json.dumps({\n  \"template_name\": \"product_description\",\n  \"prompt\": {\n    \"product_name\": \"Blue sports underwear\",\n    \"brand\": \"Nike\",\n    \"product_category\": \"Clothing\",\n    \"product_features\": \"Ultra soft and super well wet absorbing\"\n  },\n  \"temperature\": 0.65,\n  \"token_count\": 200,\n  \"n_gen\": 2,\n  \"source_language\": \"en\",\n  \"api_key\": \"YOUR_API_KEY\"\n})\nheaders = {\n  'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n```\n\nThe response would be like the following:\n```\n{\n    \"status\": \"success\",\n    \"generated_text\": [\n        {\n            \"text\": \"In addition to the standard color Nike Dri-Fit, the Nike Dri-Fit Blue is available in two other colors as well. The Nike Dri-Fit Blue is made of a special blend of spandex and elastane that is soft, ultra soft, and super well wet absorbing. It is designed for comfort and performance with a soft interior to help keep you cool and dry even after an intense workout.\",\n            \"id\": \"d7873828-0d1d-4961-a3a4-0f797c9a9218\"\n        },\n        {\n            \"text\": \"Nike Men's Men's Blue Sports Running Shorts.\",\n            \"id\": \"bb1f65b2-a660-4f33-8535-ffd5d86d16ee\"\n        }\n    ],\n    \"remaining_requests\": 86,\n    \"error\": 200\n}\n```\nRest of the examples together with PHP scripts can be found under root directory. If you have questions, contact us at dev@textcortex.com\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftextcortex%2Fhemingwai-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftextcortex%2Fhemingwai-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftextcortex%2Fhemingwai-examples/lists"}