deepseek-v4.1-flash: Responses
curl --request POST \
--url https://api.zerogpu.ai/v1/responses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"input": "Hello!",
"model": "deepseek-v4.1-flash"
}
'import requests
url = "https://api.zerogpu.ai/v1/responses"
payload = {
"input": "Hello!",
"model": "deepseek-v4.1-flash"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({input: 'Hello!', model: 'deepseek-v4.1-flash'})
};
fetch('https://api.zerogpu.ai/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerogpu.ai/v1/responses"
payload := strings.NewReader("{\n \"input\": \"Hello!\",\n \"model\": \"deepseek-v4.1-flash\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.zerogpu.ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": \"Hello!\",\n \"model\": \"deepseek-v4.1-flash\"\n}"
response = http.request(request)
puts response.read_body{}{}By model
deepseek-v4.1-flash
Model details for deepseek-v4.1-flash. Reasoning, coding, and agentic workflows with a 1M-token context window.
POST
/
responses
deepseek-v4.1-flash: Responses
curl --request POST \
--url https://api.zerogpu.ai/v1/responses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"input": "Hello!",
"model": "deepseek-v4.1-flash"
}
'import requests
url = "https://api.zerogpu.ai/v1/responses"
payload = {
"input": "Hello!",
"model": "deepseek-v4.1-flash"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({input: 'Hello!', model: 'deepseek-v4.1-flash'})
};
fetch('https://api.zerogpu.ai/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerogpu.ai/v1/responses"
payload := strings.NewReader("{\n \"input\": \"Hello!\",\n \"model\": \"deepseek-v4.1-flash\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.zerogpu.ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": \"Hello!\",\n \"model\": \"deepseek-v4.1-flash\"\n}"
response = http.request(request)
puts response.read_body{}{}DeepSeek’s DeepSeek-V4.1-Flash is an open-weight sparse Mixture-of-Experts model and the first built on DeepSeek’s Causal Encoder-Decoder (CED) architecture, activating 8B parameters on input and 16B on output, served on ZeroGPU for general text generation. It keeps the 1,048,576-token (1M) context window of the V4 Flash line, which suits large codebases, long documents, extended conversations, and multi-step agent tasks, and supports function calling alongside both fast non-thinking replies and higher-effort reasoning.References: Model docs • Terms • Privacy
Authorizations
Headers
Optional project identifier. Scopes the request to a specific project when provided.
Body
application/json
Model identifier (fixed for this playground). Use request examples to change use cases.
Allowed value:
"deepseek-v4.1-flash"Example:
"deepseek-v4.1-flash"
Multi-line text or document content to send to the model.
Required string length:
1 - 131072Maximum number of tokens to generate in the response.
Required range:
x >= 1Example:
800
Response
Success
The response is of type object.

