DeepSeek Flash
deepseek-flash- DeepSeek
- Language
Chat and reasoning through the OpenAI-compatible chat API.
Overview
- Model developer
- DeepSeek
- Supported protocols
openaianthropicopenai-response
Call this model
Create an API key, add account credit, and confirm this model is available to your key before sending a request.
Copy the complete model reference, including every published protocol, for your AI assistant.
/v1/chat/completionsRequest parameters
| Parameter | Required | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
model | Required | string | Use this exact published model ID. Constraints
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
messages | Required | object[] | Send the conversation history in order. Constraints
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
These fields apply when messages is supplied. A required child does not make its optional parent required.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
thinking | Optional | object | Enable or disable thinking mode. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
These fields apply when thinking is supplied. A required child does not make its optional parent required.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reasoning_effort | Optional | string | Choose reasoning effort; none disables thinking.
Constraints
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
max_tokens | Optional | integer | Maximum generated tokens; input and output must also fit the model context. Constraints
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stream | Optional | boolean | Receive incremental server-sent events.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stream_options | Optional | object | Streaming options; use together with stream=true. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
These fields apply when stream_options is supplied. A required child does not make its optional parent required.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
temperature | Optional | number | Sampling randomness; ignored while thinking is enabled.
Constraints
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
top_p | Optional | number | Thinking-mode sampling threshold; ignored in non-thinking mode.
Constraints
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stop | Optional | string | string[] | Stop generation at any supplied sequence. Constraints
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
response_format | Optional | object | Select ordinary text or JSON object output. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
These fields apply when response_format is supplied. A required child does not make its optional parent required.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tools | Optional | object[] | Declare functions the model may request; your application executes them. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
These fields apply when tools is supplied. A required child does not make its optional parent required.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tool_choice | Optional | string | object | Allow, disable, require, or select a function call. Constraints
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
logprobs | Optional | boolean | Return log probabilities for generated text. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
top_logprobs | Optional | integer | Number of candidate-token probabilities; requires logprobs=true. Constraints
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request notes
- Use a Scenepond Bearer API key and the Scenepond base URL; no provider key is required.
- Thinking is enabled by default. Temperature has no effect in thinking mode; top_p has no effect in non-thinking mode.
- When max_tokens is omitted, the provider defaults to 8192 without thinking, 65536 with thinking, or 131072 at max reasoning effort.
- JSON object output also needs an instruction to produce JSON. Check finish_reason before treating truncated output as complete JSON.
- Required or named tool_choice needs thinking disabled. Validate function arguments before executing a tool.
- Preserve assistant tool_calls, their reasoning_content, and matching tool replies across thinking tool-call turns.
- Chat streaming ends with [DONE]. The provider includes final token usage; the gateway may normalize usage-chunk delivery.
- The gateway removes stream_options when stream is false and may request usage automatically on supported channels.
- frequency_penalty and presence_penalty no longer affect native DeepSeek output. Do not rely on seed, n, or max_completion_tokens as supported DeepSeek controls.
- The provider documents user_id, but the current gateway Chat DTO does not preserve that field. Extra undocumented fields are not guaranteed to reach the provider.
- Assistant prefix completion and strict tool schemas are provider beta features; their beta routing is not verified by this standard Chat endpoint.
- DeepSeek Flash accepts image URLs and inline image data in user or tool messages. Image input in system or assistant messages is rejected; Scenepond Files API support is not established here.
Minimum request
1curl --fail-with-body -X POST "https://scenepond-api-production.up.railway.app/v1/chat/completions" \
2 -H "Authorization: Bearer $SCENEPOND_API_KEY" \
3 -H "Content-Type: application/json" \
4 --data-binary @- <<'JSON'
5{
6 "model": "deepseek-flash",
7 "messages": [
8 {
9 "role": "user",
10 "content": "Hello"
11 }
12 ]
13}
14JSONRun this example in a shell with cURL installed. Set SCENEPOND_API_KEY before running.
Illustrative responses
Response examples show the structure only. IDs, URLs, and values are placeholders.
Completed chat response
1{
2 "id": "chatcmpl_example",
3 "object": "chat.completion",
4 "created": 1790812800,
5 "model": "deepseek-flash",
6 "choices": [
7 {
8 "index": 0,
9 "message": {
10 "role": "assistant",
11 "content": "Hello! How can I help?"
12 },
13 "finish_reason": "stop"
14 }
15 ],
16 "usage": {
17 "prompt_tokens": 8,
18 "completion_tokens": 9,
19 "total_tokens": 17
20 }
21}Chat streaming text chunk
1{
2 "id": "chatcmpl_example",
3 "object": "chat.completion.chunk",
4 "created": 1790812800,
5 "model": "deepseek-flash",
6 "choices": [
7 {
8 "index": 0,
9 "delta": {
10 "content": "Hello"
11 },
12 "finish_reason": null
13 }
14 ]
15}Use it in your application
Connect an enabled chat model to Hermes Agent, OpenClaw, or DeepSeek Harness. Tool use, images, and reasoning depend on the model and its configured protocol.
Hermes Agent
Use Scenepond as the model provider for your Hermes agent.
Agent runtimeSetup guideOpenClaw
Connect your personal assistant to an enabled model through a custom provider.
Personal assistantSetup guideDeepSeek Harness
Add Scenepond as a custom model API for coding and repository tasks.
Coding agentSetup guideModel access and request limits depend on your account, API key, and service configuration.