Set Up Your Environment
Export these two variables before running any example on this page:Quick Test
Send your first request to verify everything is working:Available Models
Text Generation
| Model | Highlights |
|---|---|
gemini-2.5-flash | Fast responses, cost-efficient — recommended starting point |
gemini-2.5-pro | Stronger reasoning for complex tasks |
gemini-2.0-flash | Previous-generation fast model |
gemini-1.5-pro | Long context window support |
Image Generation
| Model | Notes |
|---|---|
imagen-3.0-generate-001 | Imagen 3 standard — highest quality |
imagen-3.0-fast-generate-001 | Imagen 3 fast — lower latency |
Video Generation
| Model | Notes |
|---|---|
veo-3.1-generate-preview | Veo 3.1 standard — best visual quality |
veo-3.1-fast-generate-preview | Veo 3.1 fast — quicker turnaround |
Endpoints at a Glance
| Capability | Method & Endpoint |
|---|---|
| Chat / text generation | POST /v1/chat/completions |
| Embeddings | POST /v1/embeddings |
| Image generation | POST /v1/images/generations |
| Video generation | POST /v1/videos |
Authentication
Every request must carry your Fhddos token as a Bearer credential:Explore the API
Generate Content
Text conversations, vision, thinking mode, tool calling, and streaming
Image Generation
Imagen 3 text-to-image with sync and async workflows
Video Generation
Veo 3.1 text-to-video and image-to-video with task polling
Embeddings
Semantic text vectors for search, RAG, and similarity
