Skip to main content
Generate text synchronously

Authorizations

X-App-Key
string
header
required

Public application identifier.

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-App-Version
string
required

Version of the client application.

Minimum string length: 1

Body

application/json
model
string
required

Exact model ID returned by GET /v2/texts/models.

Required string length: 1 - 100
prompt
string
required

Prompt and instructions together may contain at most 3,000,000 characters.

Required string length: 1 - 3000000
instructions
string
Maximum string length: 3000000
max_output_tokens
integer

Maximum is the selected model’s advertised limit. Omission uses the model’s own limit.

Required range: x >= 16
reasoning_effort
string

Choose a value advertised by the selected model.

Required string length: 1 - 16
request_id
string

Reuse this ID for the same logical generation, including across sync and background routes.

Required string length: 1 - 100

Response

Text generation job

job_id
string<uuid>
required
operation
enum<string>
required
Available options:
speech_to_text,
image_to_image,
text_to_text
Allowed value: "text_to_text"
status
enum<string>
required
Available options:
pending,
processing,
completed,
failed
input
object
required
result
object
required
error
object | null
required
created_at
string<date-time>
required
finished_at
string<date-time> | null
required