Skip to content

Create Text Generator Task

http
POST /sse/text_generator/
Content-Type: application/json
X-API-ID: <api-id>
X-API-KEY: <api-key>

Required body fields:

  • model_name
  • messages

Set sync: true for a blocking response. Omit it or set it to false for an asynchronous task. Optional fields include system_instruction, config, tools, tool configuration, and webhook_url.

Expected responses include 201 for an accepted result or task, 400 for invalid input, 401 for invalid credentials, 402 for insufficient credits, and 429 for rate limiting.