Google's Gemini 2.0 Flash is a high-performance generative AI model optimized for chat, text generation, and complex reasoning tasks. It features superior speed, built-in tool use, and a massive 1 million token context window. Supporting multimodal inputs including images, video, and audio, as well as multimodal outputs, it enables advanced agentic capabilities. Additionally, it allows collaboration in interactive spaces like Canvas for writing documents and code, and incorporates reasoning through thoughts for enhanced performance and accuracy.
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.0-flash-001",
"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": 1756509908,
"model": "google/gemini-2.0-flash-001",
"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
}
}