Review this function for empty inputs, repeated calls and error handling. Propose a minimal patch and focused regression cases. Code: [paste code]
USER MESSAGECode boundary review
Assess an implementation using explicit failure cases.
No matching models
Explore all modelsgemini-3.5-flash-high is a platform alias for the earlier Gemini 3.5 Flash family. Google has deprecated that family; its upstream redirect does not define this platform route. Check this route's current contract before integration.
curl 'https://astralgames.ai/v1beta/models/gemini-3.5-flash-high:generateContent' \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $MODEL_API_KEY" \
--data '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Explain how an HTTP request works in three concise steps."
}
]
}
],
"generationConfig": {
"maxOutputTokens": 1024
}
}'const apiKey = process.env.MODEL_API_KEY;
const response = await fetch("https://astralgames.ai/v1beta/models/gemini-3.5-flash-high:generateContent", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": apiKey
},
body: JSON.stringify({
"contents": [
{
"role": "user",
"parts": [
{
"text": "Explain how an HTTP request works in three concise steps."
}
]
}
],
"generationConfig": {
"maxOutputTokens": 1024
}
})
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.text());import os
import json
import requests
response = requests.post(
"https://astralgames.ai/v1beta/models/gemini-3.5-flash-high:generateContent",
headers={
"Content-Type": "application/json",
"x-goog-api-key": os.environ["MODEL_API_KEY"]
},
json=json.loads("{\"contents\":[{\"role\":\"user\",\"parts\":[{\"text\":\"Explain how an HTTP request works in three concise steps.\"}]}],\"generationConfig\":{\"maxOutputTokens\":1024}}"),
timeout=300,
)
response.raise_for_status()
print(response.text)curl 'https://astralgames.ai/v1beta/models/gemini-3.5-flash-high:streamGenerateContent?alt=sse' \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $MODEL_API_KEY" \
--data '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Explain how an HTTP request works in three concise steps."
}
]
}
],
"generationConfig": {
"maxOutputTokens": 1024
}
}'const apiKey = process.env.MODEL_API_KEY;
const response = await fetch("https://astralgames.ai/v1beta/models/gemini-3.5-flash-high:streamGenerateContent?alt=sse", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": apiKey
},
body: JSON.stringify({
"contents": [
{
"role": "user",
"parts": [
{
"text": "Explain how an HTTP request works in three concise steps."
}
]
}
],
"generationConfig": {
"maxOutputTokens": 1024
}
})
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.text());import os
import json
import requests
response = requests.post(
"https://astralgames.ai/v1beta/models/gemini-3.5-flash-high:streamGenerateContent?alt=sse",
headers={
"Content-Type": "application/json",
"x-goog-api-key": os.environ["MODEL_API_KEY"]
},
json=json.loads("{\"contents\":[{\"role\":\"user\",\"parts\":[{\"text\":\"Explain how an HTTP request works in three concise steps.\"}]}],\"generationConfig\":{\"maxOutputTokens\":1024}}"),
timeout=300,
)
response.raise_for_status()
print(response.text)curl 'https://astralgames.ai/v1/interactions' \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $MODEL_API_KEY" \
--data '{
"model": "gemini-3.5-flash-high",
"input": "Explain how an HTTP request works in three concise steps.",
"stream": false
}'const apiKey = process.env.MODEL_API_KEY;
const response = await fetch("https://astralgames.ai/v1/interactions", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": apiKey
},
body: JSON.stringify({
"model": "gemini-3.5-flash-high",
"input": "Explain how an HTTP request works in three concise steps.",
"stream": false
})
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.text());import os
import json
import requests
response = requests.post(
"https://astralgames.ai/v1/interactions",
headers={
"Content-Type": "application/json",
"x-goog-api-key": os.environ["MODEL_API_KEY"]
},
json=json.loads("{\"model\":\"gemini-3.5-flash-high\",\"input\":\"Explain how an HTTP request works in three concise steps.\",\"stream\":false}"),
timeout=300,
)
response.raise_for_status()
print(response.text)curl 'https://astralgames.ai/v1beta/interactions' \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $MODEL_API_KEY" \
--data '{
"model": "gemini-3.5-flash-high",
"input": "Explain how an HTTP request works in three concise steps.",
"stream": false
}'const apiKey = process.env.MODEL_API_KEY;
const response = await fetch("https://astralgames.ai/v1beta/interactions", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": apiKey
},
body: JSON.stringify({
"model": "gemini-3.5-flash-high",
"input": "Explain how an HTTP request works in three concise steps.",
"stream": false
})
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.text());import os
import json
import requests
response = requests.post(
"https://astralgames.ai/v1beta/interactions",
headers={
"Content-Type": "application/json",
"x-goog-api-key": os.environ["MODEL_API_KEY"]
},
json=json.loads("{\"model\":\"gemini-3.5-flash-high\",\"input\":\"Explain how an HTTP request works in three concise steps.\",\"stream\":false}"),
timeout=300,
)
response.raise_for_status()
print(response.text)Set MODEL_API_KEY in your server environment. Requests use this model’s native API and your account pricing.
Estimate one request, then choose a budget for your workflow.
| Usage | Quantity | Rate | Cost |
|---|---|---|---|
| tokens | $0.375/ 1M | $0.000375 | |
| tokens | $0.0375/ 1M | $0 | |
| tokens | $2.25/ 1M | $0.001125 | |
| tokens | $2.25/ 1M | $0 |
Public USD estimate. Your account rate and final recorded usage determine the actual charge.
| Specification | Our price | Official reference |
|---|---|---|
| Input | $0.375 / 1M tokens | $1.5 About 75% less than official |
| Cached input | $0.0375 / 1M tokens | $0.15 About 75% less than official |
| Output | $2.25 / 1M tokens | $9 About 75% less than official |
| Reasoning | $2.25 / 1M tokens | $9 About 75% less than official |
Original prompts adapted to documented capabilities; these are not vendor-generated outputs.
Official source ↗ · 2026-10-18
Review this function for empty inputs, repeated calls and error handling. Propose a minimal patch and focused regression cases. Code: [paste code]
USER MESSAGEAssess an implementation using explicit failure cases.
Summarize these meeting notes into decisions, owners and open questions. Quote the evidence for each decision; do not invent missing deadlines. Notes: [paste notes]
USER MESSAGESeparate confirmed decisions from unresolved information.
gemini-3.5-flash-high is a platform alias for the earlier Gemini 3.5 Flash family. Google has deprecated that family; its upstream redirect does not define this platform route. Check this route's current contract before integration.
Official model information ↗ · 2026-10-18
| Specification | gemini-3.5-flash-high |
|---|---|
| Model ID | gemini-3.5-flash-high |
| Provider | |
| API | /v1beta/models/{model}:generateContent · /v1beta/models/{model}:streamGenerateContent · /v1/interactions · /v1beta/interactions |
| Context window | 128,000 tokens |
| Maximum output | 16,384 tokens |
| Declared capabilities | See the native API contract |
gemini · gemini-3.5-flash-high
| Specification | gemini-3.5-flash-high | Claude Fable 5 | Claude Fable 5.1 |
|---|---|---|---|
| Provider | Anthropic | Anthropic | |
| Input → output | TextText | TextText | TextText |
| Selection basis | Current model | Same billing units | Same billing units |
| Context / max output | 128,000 / 16,384 | 1,000,000 / 128,000 | 1,000,000 / 128,000 |
| Starting price | $0.375 / 1M tokens | $3 / 1M tokens | $3 / 1M tokens |
Choose by the input types, output settings and billing unit your workflow needs. Try the same prompt across models to compare results for your own use case.
Keep the native request format and point your application to the platform API. Prepare a key with model access, then review status and charges in your usage records.
View API examplesEverything you need to know about API access, pricing and model capabilities.
Charges depend on the recorded token usage and your account rates. Input, output and supported cache or reasoning categories are listed separately in the pricing table. The calculator uses public USD prices; the final usage receipt determines the charge.
Choose “Get API access” to open the integration guide. Sign in to your Astral Nexus account, prepare a key with access to this model and copy an API example.
Supported endpoints: /v1beta/models/{model}:generateContent、/v1beta/models/{model}:streamGenerateContent、/v1/interactions、/v1beta/interactions. Choose an endpoint in the API examples to see its native request format.
Streaming is not declared for the current route. Use the response format supported by its API.
Tools: not declared. Structured output: not declared. Request fields follow the selected native endpoint.
Keep the request ID and open your account’s LLM usage records to inspect request status, token counts and charges. Prompt and answer content are not a conversation history in this view.
Hello, API.Prepare a key, choose a model and send a minimal request.
View docs section ↗{ messages: [...] }Explore request formats for OpenAI, Claude and Gemini.
View docs section ↗build(something)Separate token estimates, account pricing and final usage receipts.
View docs section ↗