Skip to main content
POST
Create response

Autorisations

Authorization
string
header
requis

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

Corps

application/json
model
string
requis

Target model ID.

Exemple:

"openai/gpt-4o"

input

Input text or structured input items.

stream
boolean
défaut:false

Enable streaming.

Réponse

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.