Text completion using the model selected in the request body
Text completion using the model selected in the request body.
Answeringour last check, 2026-11-26
7 of 7checks answered this week
1089 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 | 8 from 6 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.002 | 1269 ms |
| 2026-11-25 | valid payment request | 402 | $0.002 | 1935 ms |
| 2026-11-24 | valid payment request | 402 | $0.002 | 1182 ms |
| 2026-11-23 | valid payment request | 402 | $0.002 | 1089 ms |
| 2026-11-22 | valid payment request | 402 | $0.002 | 1047 ms |
| 2026-11-21 | valid payment request | 402 | $0.002 | 885 ms |
| 2026-11-20 | valid payment request | 402 | $0.002 | 947 ms |
| 2026-11-19 | valid payment request | 402 | $0.002 | 833 ms |
| 2026-11-18 | valid payment request | 402 | $0.002 | 780 ms |
| 2026-11-17 | valid payment request | 402 | $0.002 | 974 ms |
| 2026-11-16 | valid payment request | 402 | $0.002 | 927 ms |
| 2026-11-15 | valid payment request | 402 | $0.002 | 872 ms |
| 2026-11-14 | valid payment request | 402 | $0.002 | 1006 ms |
| 2026-11-13 | valid payment request | 402 | $0.002 | 811 ms |
| 2026-11-12 | valid payment request | 402 | $0.002 | 964 ms |
| 2026-11-11 | valid payment request | 402 | $0.002 | 935 ms |
| 2026-11-10 | valid payment request | 402 | $0.002 | 749 ms |
| 2026-11-09 | valid payment request | 402 | $0.002 | 1066 ms |
| 2026-11-08 | valid payment request | 402 | $0.002 | 940 ms |
| 2026-11-07 | valid payment request | 402 | $0.002 | 731 ms |
| 2026-11-06 | valid payment request | 402 | $0.002 | 786 ms |
| 2026-11-05 | valid payment request | 402 | $0.002 | 704 ms |
| 2026-11-04 | valid payment request | 402 | $0.002 | 1269 ms |
| 2026-11-03 | valid payment request | 402 | $0.002 | 769 ms |
| 2026-11-02 | valid payment request | 402 | $0.002 | 787 ms |
| 2026-11-01 | valid payment request | 402 | $0.002 | 752 ms |
| 2026-10-31 | valid payment request | 402 | $0.002 | 875 ms |
| 2026-10-29 | valid payment request | 402 | $0.002 | 900 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 models with capabilities.reasoning. When true the reasoning is returned in message.reasoning_content, separate from content. Defaults to false.",
"type": "boolean"
},
"max_tokens": {
"default": 1024,
"maximum": 2048,
"minimum": 1,
"type": "integer"
},
"messages": {
"items": {
"additionalProperties": false,
"properties": {
"content": {
"description": "Text, or (user role, vision models only) an array of text and image_url parts.",
"oneOf": [
{
"type": "string"
},
{
"items": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"text": {
"type": "string"
},
"type": {
"const": "text"
}
},
"required": [
"type",
"text"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"image_url": {
"additionalProperties": false,
"properties": {
"url": {
"description": "https:// URL or data:image/(png|jpeg|webp|gif);base64 URI.",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
},
"type": {
"const": "image_url"
}
},
"required": [
"type",
"image_url"
],
"type": "object"
}
]
},
"minItems": 1,
"type": "array"
}
]
},
"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": {
"default": false,
"description": "Server-sent events in OpenAI chat.completion.chunk format. Only on models with capabilities.streaming.",
"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": {
"finish_reason": {
"description": "\"length\" means max_tokens truncated the answer.",
"enum": [
"stop",
"length",
"content_filter"
],
"type": "string"
},
"message": {
"properties": {
"content": {
"type": "string"
},
"reasoning_content": {
"description": "Present when enable_thinking is true and the model produced reasoning.",