curl -H "Content-Type: application/json" https://datasqueezer.com/nexus/createTask -d '{ "token": "__API_TOKEN__", "service": "copywriter4o", "data": "__PROMPT__", "serviceParams": { "maxTokens": "__MAX_TOKENS__", "systemPrompt": "__SYSTEM_PROMPT__" } }'
NAME DESCRIPTION REQUIRED PARAMETER __MAX_TOKENS__ You can think of tokens as pieces of words,
where 1,000 tokens is about 750 words (default
value: 32768).
no __SYSTEM_PROMPT__ Introduction of what will be done,
e.g. "I will send you a product description and you rewrite it,
to make it more marketable" (default value is empty).
The maximum length is 4096 tokens. no __PROMPT__ The content itself, e.g. product name,
product description, specifications, etc.
The maximum length is 4096 tokens. yes
import requests
import jsonendpoint = 'https://datasqueezer.com/nexus/createTask'
data = {
'token': '__API_TOKEN__',
'service': 'copywriter4o',
'data': '__PROMPT__',
'serviceParams':
{
'maxTokens': '__MAX_TOKENS__',
'systemPrompt': '__SYSTEM_PROMPT__'
}
}response = requests.post(endpoint, data=json.dumps(data))
| NAME | DESCRIPTION | REQUIRED PARAMETER |
| __MAX_TOKENS__ | You can think of tokens as pieces of words, | no |
| __SYSTEM_PROMPT__ | Introduction of what will be done, e.g. "I will send you a product description and you rewrite it, to make it more marketable" (default value is empty). The maximum length is 4096 tokens. | no |
| __PROMPT__ | The content itself, e.g. product name, product description, specifications, etc. The maximum length is 4096 tokens. | yes |
$curlHandle=curl_init("https://datasqueezer.com/nexus/createTask");
$data=[
'token'=>'__API_TOKEN__',
'service'=>'copywriter4o',
'data'=>'__PROMPT__',
'serviceParams'=>[
'maxTokens': '__MAX_TOKENS__',
'systemPrompt': '__SYSTEM_PROMPT__'
],
];curl_setopt($curlHandle, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_FOLLOWLOCATION, true);$response=curl_exec($curlHandle);
$error_msg=curl_error($curlHandle);
curl_close($curlHandle);
| NAME | DESCRIPTION | REQUIRED PARAMETER |
| __MAX_TOKENS__ | You can think of tokens as pieces of words, | no |
| __SYSTEM_PROMPT__ | Introduction of what will be done, e.g. "I will send you a product description and you rewrite it, to make it more marketable" (default value is empty). The maximum length is 4096 tokens. | no |
| __PROMPT__ | The content itself, e.g. product name, product description, specifications, etc. The maximum length is 4096 tokens. | yes |

