Skip to content

Models API

OpenAI-compatible model discovery and inference endpoints.
MethodPathRequestResponse
GET/v1/modelsModelList
POST/v1/chat/completionsChatCompletionRequestChatCompletion or an SSE stream
GET /v1/models
Terminal window
curl https://app.dexto.ai/v1/models \
-H "Authorization: Bearer $DEXTO_API_KEY"
Response fieldJSON typeRequiredDescription
object"list"YesList discriminator
dataarray<Model>YesModels available to the API key
data[].idstringYesModel identifier used in requests
data[].object"model"YesObject discriminator
data[].createdintegerNoUnix timestamp in seconds
data[].owned_bystringNoModel provider
POST /v1/chat/completions

The endpoint supports text, model-dependent image, PDF, and audio inputs, tool calls, reasoning, and streaming. Available modalities depend on the selected model.

Request fieldJSON typeRequiredDescription
modelstringYesID returned by GET /v1/models
messagesarray<Message>YesOrdered conversation messages
messages[].rolestringYessystem, user, assistant, or tool
messages[].contentstring | arrayYesText or structured multimodal parts
streambooleanNoReturn server-sent events
temperaturenumberNoSampling temperature
max_tokensintegerNoMaximum generated tokens
toolsarray<Tool>NoOpenAI-compatible function tools
Terminal window
curl https://app.dexto.ai/v1/chat/completions \
-H "Authorization: Bearer $DEXTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5-mini",
"messages": [{"role":"user","content":"Summarize this release note."}]
}'

With stream: true, the response uses text/event-stream and returns OpenAI-compatible completion chunks.