Zero2Launch API
  • Welcome
  • Chat & Text Generation
  • Text to Speech & Transcription
  • Voice Generation (with Link)
  • AI Image Generator
  • Models
Powered by GitBook
On this page

Chat & Text Generation

PreviousWelcomeNextText to Speech & Transcription

Chat & Text Generation

  • POSTGenerates text based on input messages
  • GETList available text models

List available text models

get
Responses
200
Success
get
GET /generate-text/models HTTP/1.1
Host: api.zero2launch.com
Accept: */*
200

Success

No content

Generates text based on input messages

post

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[]Required

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.

Default: [{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":""}]
modelstringOptional

Model name

Default: 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: 32

{
  "messages": [
    {}
  ],
  "model": "text"
}
200

Success

{
  "text": "text"
}