Skip to main content
POST
Create response

Authorizations

Authorization
string
header
required

Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.

Body

application/json
model
string
required

Target model ID.

Example:

"openai/gpt-4o"

input

Input text or structured input items.

stream
boolean
default:false

Enable streaming.

Response

Response object.

id
string

Response identifier.

object
string

Always response.

created_at
integer

Creation timestamp.

status
string

Response lifecycle state.

model
string

Model used for inference.

output
object[]

Output items.

usage
object

Token usage breakdown.