Skip to main content
All paths are relative to http://127.0.0.1:10100. From another device, use the address from Settings → Network access and send the API key; see Other devices. Supported inputs and features depend on the model. Your application keeps the conversation history and executes any tools the model requests.

Chat completion

Replace MODEL_ID with an ID from the models endpoint:
The generated text is in choices[0].message.content.

Streaming

Add "stream": true to the request body. Responses arrive as server-sent events. With curl, add -N to print events as they arrive.

Anthropic Messages

The generated text is in content[0].text. These examples use macOS and Linux quoting. On Windows, use curl.exe with quoting appropriate for your shell, or send the same JSON from your application.