Google Gemini 2.5 Flash is an advanced chat model boasting a 1,048,576 token context window. As a 'thinking' model, it reasons through its thoughts before responding, providing transparency into its reasoning process and resulting in superior performance and accuracy. Optimized for cost efficiency and low latency, it's ideal for well-rounded capabilities in generative AI tasks.
curl -X POST https://neuralhubapi.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer NEURALHUB_API_KEY" \
-d '{
"model": "google/gemini-2.5-flash",
"messages": [
{ "role": "system", "content": "You are a helpful assistant." },
{ "role": "user", "content": "What is the answer to life, the universe, and everything?" }
],
"temperature": 0.7,
"max_tokens": 500,
"top_p": 0.9
}'
The API returns an OpenAI-compatible response. Example:
{
"id": "chatcmpl-<uuid>",
"object": "chat.completion",
"created": 1756503095,
"model": "google/gemini-2.5-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The answer to life, the universe, and everything is famously **42**, according to Douglas Adams' *The Hitchhiker’s Guide to the Galaxy*..."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 26,
"completion_tokens": 169,
"total_tokens": 195
}
}