Text completion using the model selected in the request body
Text completion using the model selected in the request body.
Answeringour last check, 2026-09-24
1 of 1checks answered this week
691 msmedian answer time
$0.002listed price per call
$0.002price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.onhub.ai/v1/chat/completions
| Category | Everything else |
|---|---|
| Provider host | api.onhub.ai |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 9 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-24 | valid payment request | 402 | $0.002 | 691 ms |
Example input (from the provider)
{
"body": {
"messages": [
{
"content": "Say hello in one sentence.",
"role": "user"
}
]
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"enable_thinking": {
"description": "For reasoning-capable Workers AI models. Defaults to false for GPT-OSS chat reliability.",
"type": "boolean"
},
"max_tokens": {
"default": 1024,
"maximum": 2048,
"minimum": 1,
"type": "integer"
},
"messages": {
"items": {
"additionalProperties": false,
"properties": {
"content": {
"type": "string"
},
"role": {
"enum": [
"system",
"user",
"assistant"
],
"type": "string"
}
},
"required": [
"role",
"content"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"model": {
"description": "Optional; must match the model in the selected route.",
"type": "string"
},
"reasoning_effort": {
"description": "For reasoning-capable Workers AI models.",
"enum": [
"low",
"medium",
"high",
null
],
"type": [
"string",
"null"
]
},
"stream": {
"const": false,
"default": false,
"type": "boolean"
},
"temperature": {
"maximum": 2,
"minimum": 0,
"type": "number"
}
},
"required": [
"messages"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"choices": {
"items": {
"properties": {
"message": {
"properties": {
"content": {
"type": "string"
},
"role": {
"const": "assistant",
"type": "string"
}
},
"required": [
"role",
"content"
],
"type": "object"
}
},
"required": [
"message"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"model": {
"type": "string"
},
"object": {
"const": "chat.completion",
"type": "string"
}
},
"required": [
"object",
"model",
"choices"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}