Skip to main content
POST
An :async model answers at once with a queued or in_progress response; poll GET /v1/responses/{response_id} until it is terminal. A :superfast model completes inline. stream: true returns server-sent events: live on :superfast models, buffered on :async models (keep-alives while the job runs, then the whole output).

Authorizations

Authorization
string
header
required

Your Abstract API key. Get it with abstract login, pass it as $(abstract token).

Headers

Idempotency-Key
string

The same POST with the same key returns the same response and never starts a second job. 1 to 200 characters from A-Z a-z 0-9 _ . / : -.

Pattern: ^[A-Za-z0-9_./:-]{1,200}$

Body

application/json
model
enum<string>
required
Available options:
glm-5.3:async,
deepseek-v4-flash:async,
glm-5.3:superfast,
deepseek-v4-flash:superfast,
kimi-k3:superfast
input

The OpenAI Responses input.

stream
boolean
default:false
max_output_tokens
integer

Default 8,192 on glm-5.3:superfast and 4,096 on the others.

Required range: 1 <= x <= 65536
metadata
object

Response

The response. On an :async model its status is queued or in_progress.

id
string
required
status
enum<string>
required
Available options:
queued,
in_progress,
completed,
failed,
cancelled,
incomplete
model
string
required

The public model id you sent.

object
string
Allowed value: "response"
created_at
integer
output
object[]
usage
object | null