Skip to main content
POST
Create response

授權

Authorization
string
header
必填

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

主體

application/json
model
string
必填

Target model ID.

範例:

"openai/gpt-4o"

input

Input text or structured input items.

stream
boolean
預設值:false

Enable streaming.

回應

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.