Skip to main content
Core.Today
|
GoogleFastHigh

Gemini 2.0 Flash

Google's fastest and most capable model. Features a massive 1M token context window, native multimodal support, and real-time capabilities.

1 credits
per 1K tokens (avg)
1M token context window
8K max output tokens
Native multimodal (text, image, audio, video)
Real-time streaming
Code execution
Grounding with Google Search

Model Specifications

Context Window
1.0M
tokens
Max Output
8K
tokens
Training Cutoff
2024-06
Compatible SDK
OpenAI, Google

Capabilities

Vision
Function Calling
Streaming
JSON Mode
System Prompt

Token Pricing (per 1M tokens)

Token TypeCreditsUSD Equivalent
Input Tokens75$0.07
Output Tokens300$0.30

* 1 credit โ‰ˆ $0.001 (actual charges may vary based on usage)

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "model": "gemini-2.0-flash",
  "input": {
    "model": "gemini-2.0-flash",
    "messages": [
      {
        "role": "system",
        "content": "You are a document analyst. Provide comprehensive analysis."
      },
      {
        "role": "user",
        "content": "Analyze this entire codebase and identify potential security vulnerabilities: [code files]"
      }
    ],
    "max_tokens": 4000
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
messagesarrayYes-Array of message objects (OpenAI format supported)
temperaturefloatNo1.0Sampling temperature (0-2)
max_tokensintegerNo-Maximum output tokens
streambooleanNofalseEnable streaming

Examples

Long Document Analysis

Analyze documents up to 1M tokens

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "model": "gemini-2.0-flash",
  "input": {
    "model": "gemini-2.0-flash",
    "messages": [
      {
        "role": "system",
        "content": "You are a document analyst. Provide comprehensive analysis."
      },
      {
        "role": "user",
        "content": "Analyze this entire codebase and identify potential security vulnerabilities: [code files]"
      }
    ],
    "max_tokens": 4000
  }
}'

Video Understanding

Analyze video content

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "model": "gemini-2.0-flash",
  "input": {
    "model": "gemini-2.0-flash",
    "messages": [
      {
        "role": "user",
        "content": "Describe what's happening in this video and identify key moments."
      }
    ]
  }
}'

Tips & Best Practices

1Use for tasks requiring very long context
2Most cost-effective for large document processing
3Supports OpenAI SDK format for easy migration
4Great for analyzing entire codebases at once
5Can process video and audio natively

Use Cases

Large document processing
Multi-file code analysis
Real-time applications
Video understanding
Long conversation memory
Research assistance

Model Info

ProviderGoogle
Version2.0
CategoryLLM
Price1 credits

API Endpoint

POST /llm/openai/v1/chat/completions
Try in PlaygroundBack to Docs