Sunbird AI · Schema
ChatCompletionRequest
Request body for POST /tasks/chat/completions (OpenAI format).
Artificial IntelligenceNon-ProfitSocial ImpactUgandaMachine Learning
Properties
| Name | Type | Description |
|---|---|---|
| model | string | Model to use. Supported: sunflower-9b |
| messages | array | Conversation messages |
| temperature | number | Sampling temperature |
| max_tokens | object | Maximum tokens to generate |
| top_p | object | Nucleus sampling probability |
| stop | object | Stop sequence(s) |
| stream | boolean | Stream the response as Server-Sent Events |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/sunbird-ai/json-schema/sunbird-ai-chat-completion-request-schema.json",
"title": "ChatCompletionRequest",
"description": "Request body for POST /tasks/chat/completions (OpenAI format).",
"x-generated": "2026-11-25",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/_original/sunbird-ai-api-openapi.json#/components/schemas/ChatCompletionRequest",
"properties": {
"model": {
"type": "string",
"title": "Model",
"description": "Model to use. Supported: sunflower-9b",
"default": "sunflower-9b"
},
"messages": {
"items": {
"$ref": "#/$defs/ChatMessage"
},
"type": "array",
"minItems": 1,
"title": "Messages",
"description": "Conversation messages"
},
"temperature": {
"type": "number",
"maximum": 2.0,
"minimum": 0.0,
"title": "Temperature",
"description": "Sampling temperature",
"default": 0.3
},
"max_tokens": {
"anyOf": [
{
"type": "integer",
"minimum": 1.0
},
{
"type": "null"
}
],
"title": "Max Tokens",
"description": "Maximum tokens to generate"
},
"top_p": {
"anyOf": [
{
"type": "number",
"maximum": 1.0,
"exclusiveMinimum": 0.0
},
{
"type": "null"
}
],
"title": "Top P",
"description": "Nucleus sampling probability"
},
"stop": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Stop",
"description": "Stop sequence(s)"
},
"stream": {
"type": "boolean",
"title": "Stream",
"description": "Stream the response as Server-Sent Events",
"default": false
}
},
"type": "object",
"required": [
"messages"
],
"$defs": {
"ChatMessage": {
"properties": {
"role": {
"type": "string",
"enum": [
"system",
"user",
"assistant"
],
"title": "Role",
"description": "Message role"
},
"content": {
"type": "string",
"title": "Content",
"description": "Message content"
}
},
"type": "object",
"required": [
"role",
"content"
],
"title": "ChatMessage",
"description": "A single message in the conversation, OpenAI format."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/sunbird-ai-chat-completion-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.