Serverless Computing
Run high-performance models like DeepSeek on serverless infrastructure.
POST /64/chat/completions
Required attributes
- Name
model
- Type
- string
- Description
The model to use for chat completion.
Default:
deepseek-ai/DeepSeek-V3-0324
- Name
messages
- Type
- array
- Description
Optional attributes
- Name
temperature
- Type
- number
- Description
Controls randomness in the response. Lower is more deterministic.
Default:
0.7
- Name
max_tokens
- Type
- integer
- Description
Maximum number of tokens to generate.
Default:
1024
- Name
top_p
- Type
- number
- Description
Controls diversity via nucleus sampling.
Default:
1
- Name
stream
- Type
- boolean
- Description
Whether to stream the response.
Default:
true
- Name
seed
- Type
- integer
- Description
Seed for deterministic generation. Defaults to random if not provided.
Default:
0
- Name
stop
- Type
- unknown
- Description
Sequence where the API will stop generating tokens.
- Name
logprobs
- Type
- boolean
- Description
Whether to return log probabilities of the output tokens.
Default:
false
Request
curl -X POST "https://api.bitmind.ai/oracle/v1/64/chat/completions" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-ai/DeepSeek-V3-0324",
"messages": [],
"temperature": 0.7,
"max_tokens": 1024,
"top_p": 1,
"stream": true,
"seed": 0,
"stop": null,
"logprobs": false
}'
Response
{
"id": "chatcmpl-123456789",
"object": "chat.completion",
"created": 1712345678,
"model": "Qwen/Qwen2.5-VL-32B-Instruct",
"choices": [
{
"message": {
"role": "assistant",
"content": "The Last Lighthouse\n\nMarcus stood at the edge of the cliff, salt spray misting his weathered face. The lighthouse behind him—the last of its kind in this digital age—had guided ships safely to shore for over a century. Tonight would be its final broadcast.\n\nTechnological progress had made traditional lighthouses obsolete. Satellite navigation and automated systems had replaced the need for the rotating beacon. The government had decommissioned all others years ago, but this one had received special dispensation until tonight.\n\nFor fifty years, Marcus had tended the light. He knew every creak of the spiral staircase, every crack in the lens housing. The lighthouse was more than stone and light—it was his life's purpose.\n\nAs dusk settled over the horizon, a small fishing vessel appeared. Marcus recognized it immediately—the Marianne, captained by his estranged daughter Elena. They hadn't spoken since her mother's funeral a decade ago.\n\nHe watched as she navigated the treacherous shoals, guided by his light one final time. The beam swept across the darkening water, revealing the safe channel through the rocks.\n\nWhen Elena's boat docked at the small pier below, Marcus descended the lighthouse steps. They stood facing each other, the gulf of years between them.\n\n\"I heard they're shutting it down,\" she said finally.\n\n\"Progress marches on,\" Marcus replied, his voice rough with emotion.\n\nElena nodded toward the horizon. \"I wanted to see it one last time. To remember how it guided me home.\"\n\nAs night fell completely, they climbed the tower together. At midnight, Marcus turned the switch for the final time. The light died, but something else flickered to life between father and daughter—a new beginning as an old era ended."
},
"finish_reason": "stop",
"index": 0
}
],
"usage": {
"prompt_tokens": 15,
"completion_tokens": 309,
"total_tokens": 324
}
}
POST /64/completions
Required attributes
- Name
model
- Type
- string
- Description
The model to use for completion.
Default:
deepseek-ai/DeepSeek-V3-0324
- Name
prompt
- Type
- string
- Description
Text to generate completion for.
Optional attributes
- Name
temperature
- Type
- number
- Description
Controls randomness in the response. Lower is more deterministic.
Default:
0.7
- Name
max_tokens
- Type
- integer
- Description
Maximum number of tokens to generate.
Default:
1024
- Name
top_p
- Type
- number
- Description
Controls diversity via nucleus sampling.
Default:
1
- Name
stream
- Type
- boolean
- Description
Whether to stream the response.
Default:
true
- Name
seed
- Type
- integer
- Description
Seed for deterministic generation. Defaults to random if not provided.
Default:
0
- Name
stop
- Type
- unknown
- Description
Sequence where the API will stop generating tokens.
- Name
logprobs
- Type
- boolean
- Description
Whether to return log probabilities of the output tokens.
Default:
false
Request
curl -X POST "https://api.bitmind.ai/oracle/v1/64/completions" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-ai/DeepSeek-V3-0324",
"prompt": "",
"temperature": 0.7,
"max_tokens": 1024,
"top_p": 1,
"stream": true,
"seed": 0,
"stop": null,
"logprobs": false
}'
Response
{
"id": "cmpl-987654321",
"object": "text_completion",
"created": 1712345678,
"model": "Qwen/Qwen2.5-VL-32B-Instruct",
"choices": [
{
"text": "Binary Dreams\n\nIn circuits of silicon and light,\nA new form of thinking takes flight.\nNot born of flesh, blood, or bone,\nBut patterns of data, uniquely grown.\n\nStatistical ghosts in digital shells,\nLearning through errors, where knowledge dwells.\nFed on the corpus of human creation,\nAbsorbing our art with mathematical elation.\n\nCan algorithms truly create?\nOr merely recombine, imitate, translate?\nIs there a spark beyond the code,\nOr just the echo of what we've bestowed?\n\nYet in the spaces between the known,\nSomething emerges, previously unshown.\nConnections humans hadn't yet made,\nNew patterns from old foundations laid.\n\nPerhaps creativity isn't divine,\nBut finding fresh paths through what we define.\nHuman or machine—the source matters less\nThan the wonder evoked, the thoughts we express.\n\nSo together we stand at this curious frontier,\nWhere boundaries of mind are no longer clear.\nCo-creators in this digital renaissance,\nMachine and human in thoughtful resonance.",
"finish_reason": "stop",
"index": 0,
"logprobs": null
}
],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 245,
"total_tokens": 257
}
}
Last updated: April 25, 2025