Chat & Text Generation
Chat & Text Generation
Note: If you receive a '400 Bad Request' with a JSON parsing error, ensure the client is sending a valid JSON payload, properly escaping special characters within strings (e.g., quotes, backslashes).
Authorizations
Header parameters
X-API-KeystringRequired
Your API key
X-Fieldsstring · maskOptional
An optional fields mask
Body
messagesobject[]RequiredDefault:
A list of message objects, where each object has 'role' (e.g., 'system', 'user', 'assistant') and 'content' (the message string). Ensure strings within 'content' are properly JSON escaped if they contain special characters.
[{"content":"You are a helpful assistant.","role":"system"},{"content":"","role":"user"}]
modelstringOptionalDefault:
Model name
openai
Responses
200
Success
application/json
post
POST /generate-text HTTP/1.1
Host: api.zero2launch.com
X-API-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"messages": [
{}
],
"model": "openai"
}
200
Success
{
"text": "text"
}