Nebula Agent chat completions
/chat/completions
An OpenAI-compatible, stateless Nebula Agent completion: send the whole conversation each time. OpenAI SDKs work unchanged, and model is ignored. Charged by usage with a 10-credit minimum; usage.credits_used reports the charge. stream: true streams server-sent events. Not available over MCP.
Wallet payment is not available for this operation; use account authentication. x402 payment guide.
Parameters
No parameters for this endpoint.
cURL Example
curl --request POST \
--url 'https://nebula-api.hiddensystems.ai/api/v1/public/chat/completions' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"content": "What changed in NVIDIA sentiment this week?",
"role": "user"
}
],
"stream": false,
"thinking_mode": "auto"
}'
Responses
Media type application/json
choices
array<object>
Generated completion choices.
choices
Generated completion choices.
choices[].delta
object
Streaming message fragment.
choices[].delta
Streaming message fragment.
choices[].delta.content
Partial assistant response text in this stream fragment.
choices[].delta.role
Conversation role when emitted in this stream fragment.
choices[].finish_reason
Reason generation stopped when available.
choices[].index
Zero-based index of the generated completion choice.
choices[].message
object
Completed assistant message for a non-streaming response.
choices[].message
Completed assistant message for a non-streaming response.
choices[].message.content
Completed assistant response text.
choices[].message.role
Conversation role of the completed message.
created
Unix timestamp when the completion was created.
id
Unique identifier assigned to the chat completion.
model
Nebula agent model identifier.
object
OpenAI-compatible object type.
usage
object
Credits consumed by this completion.
usage
Credits consumed by this completion.
usage.credits_used
Nebula credits consumed by the request.
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "NVIDIA sentiment strengthened this week as data-centre demand dominated discussion.",
"role": "assistant"
}
}
],
"created": 1786114800,
"id": "chatcmpl_nebula_01",
"model": "nebula-agent",
"object": "chat.completion",
"usage": {
"credits_used": 10
}
}