Docs
  1. Official Endpoint - v1beta
Docs
  • Introduction
  • Quick Start Guide
  • Make a request
  • YEScale System API Tutorial
  • Chat Models
    • ChatGpt
      • ChatGPT (Chat)
        • Chat completion object
        • Create chat completion (streaming)
        • Create chat completion (non-streaming)
        • Create chat image recognition (streaming)
        • Create chat image recognition (streaming) base64
        • Create chat image recognition (non-streaming)
        • Function calling
        • N choices
        • Create chat function call (only non-streaming)
        • Create structured output
      • ChatGPT Response
        • OpenAI Responses
      • ChatGPT (Audio)
        • Create transcription by gpt-4o-mini-transcribe & gpt-4o-transcribe
        • Create a voice with gpt-4o-mini-tts
        • Create a voice
        • Create a transcript
        • Create translation
      • ChatGPT (Completions)
        • Completion object
        • Creation completed
      • ChatGPT(Embeddings)
        • Embedded Object
        • Create embed
    • Anthropic Claude
      • Offical Format
        • Messages (official Anthropic format)
        • Messages(Image Recognition)
        • Messages(function call)
        • Messages(Web search)
      • Create chat completion (streaming)
      • Create chat completion (non-streaming)
      • Create chat image recognition (streaming)
      • Create chat image recognition (non-streaming)
    • Gemini
      • Official Endpoint - v1beta
        • Text generation
          POST
        • Thinking with Gemini 2.5
          POST
        • Structured output
          POST
        • Function calling
          POST
        • Grounding with Google Search
          POST
        • URL context
          POST
        • Gemini TTS
          POST
        • Gemini Embedding
          POST
      • OpenAI Endpoint Chat
        • Gemini Image creation interface (gemini-2.0-flash-exp-image-generation)
        • Chat interface
        • Image recognition interface
        • Function calling - Google Search
        • Function calling - codeExecution
    • Deepseek
      • Deepseek v3.1
  • Image Models
    • GPT-IMAGE-1
      • Generate Image by gpt-image-1
      • Edit Image by gpt-image-1
    • QWEN IMAGE
      • Generate Image by qwen-image
      • Edit Image by qwen-image-edit
    • MJ
      • Submit Imagine task (mj_imagine)
      • Submit Blend task (mj_blend)
      • Submit Describe task (mj_describe)
      • Submit Change task (mj_variation, mj_upscale,mj_reroll)
      • Query task status based on task ID
    • Ideogram
      • Generate with Ideogram 3.0
      • Edit with Ideogram 3.0
      • Remix with Ideogram 3.0
      • Ideogram Upscale
    • Kling Image
      • Submit Image Generation
      • Get Image by Task ID
      • Submit Kolors Virtual Try On
      • Get Kolors Virtual Try On by Task ID
    • Flux
      • Flux on Replicate
        • Submit Image by flux-kontext-pro
        • Submit Image by flux-kontext-max
        • Submit Image by flux-pro
        • Submit Image by flux-pro-1.1-ultra
        • Get Image by ID
    • Recraft API
      • Recraft Image
      • Generate Image
      • Generate Vector Image
      • Remove Background
      • Clarity Upscale
      • Generative Upscale
    • Models use Dall-e Format
      • Google Imagen
      • Bytedance - seedream-3.0
      • Recraftv3 use Dall-e endpoint
      • Flux use Dall-e endpoint
      • Bytedance - Seedream-4.0
      • Flux Kontext Pro/Max by Dall-e Endpoint
    • Google Imagen
      • Google/imagen-4 on Replicate
      • Get Imagen 4 Task
    • Gemini-2.5-flash-image
      • Official Endpoint
        • Image generation with Gemini (aka Nano Banana)
        • Image editing (text-and-image-to-image)
      • OpenAI Chat
        • Create Text to Image
        • Edit Image - Base64 Image -> Image
      • Create Text to Image (Dall-e endpoint)
      • Edit Image (Gpt-image-1 Endpoint)
    • DALL·E 3
      POST
  • Video Models
    • Kling Video
      • Create Video by Text
      • Get Video by Task ID(text2video)
      • Create Video by Image
      • Get Video by Task ID(image2video)
    • Runway ML Video
      • Create Video by Runway
      • Get Video by Task ID
    • Luma Video
      • Create Video by Luma
      • Get Video by Task ID
    • Pika Video
      • Create Video by Pika
      • Get Video by Task ID
    • Google Veo
      • Submit Video Request
      • Submit Video Request with Frames
      • Get Video by ID
    • Minimax - Hailuo
      • Submit Video Request
      • Get Video
    • Seedance
      • Submit Video Request
      • Get Video by Task ID
    • Mj Video
      • Submit Mj Video Request
      • Get Mj Video by task id
  • FAL-AI Models
    • Images Models
      • Ideogram/v3/remix
      • Flux-pro/kontext/max
      • Fal-bytedance-seededit-v3-edit-image
      • Fal-recraft-v3-text-to-image
      • Fal-recraft-v3-image-to-image
      • Fal-recraft-upscale-crisp
    • Audio Models
      • Minimax/speech-02-hd
      • Minimax/speech-02-turbo
      • Minimax/voice-clone
      • Elevenlabs/tts/turbo-v2.5
      • Elevenlabs/tts/multilingual-v2
      • Elevenlabs/tts/eleven-v3
    • Video Models
      • Topaz/upscale/video
      • Luma-dream-machine/ray-2-flash/reframe
      • Luma-dream-machine/ray-2/reframe
      • Kling/Lipsync- Audio2Video
      • Kling/Lipsync- Text2Video
    • Get FAL-AI tasks
  • Music Model - Suno
    • Illustrate
    • Parameter
    • Task submission
      • Generate songs (inspiration, customization, continuation)
      • Generate lyrics
    • Query interface
      • Query a single task
  • Python Samples
    • python openai official library (using AutoGPT, langchain, etc.)
    • Python uses speech to text
    • Python uses text to speech
    • Python uses Embeddings
    • python calls DALL·E
    • python simple call openai function-calling demo
    • python langchain
    • python llama_index
    • Python uses gpt-4o to identify pictures-local pictures
    • python library streaming output
    • Python uses gpt-4o to identify images
  • Plug-in/software usage tutorials
    • Setting HTTP for Make.com with Yescale
    • Sample Code for gpt-4o-audio/gpt-4o-mini-audio
  • Help Center
    • HTTP status codes
  • Tutorials
    • GPT-Image-1 API: A Step-by-Step Guide With Examples
    • Claude Code via YEScale API
    • Task Sync Endpoint Usage Guide
  1. Official Endpoint - v1beta

Gemini Embedding

POST
/v1beta/models/gemini-embedding-001:embedContent

Request

Header Params

Body Params application/json

Example
{
  "model": "models/gemini-embedding-001",
  "content": {
    "parts": [
      {
        "text": "What is the meaning of life?"
      }
    ]
  }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1beta/models/gemini-embedding-001:embedContent' \
--header 'x-goog-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "model": "models/gemini-embedding-001",
  "content": {
    "parts": [
      {
        "text": "What is the meaning of life?"
      }
    ]
  }
}'

Responses

🟢200OK
application/json
Body

Example
{
    "embedding": {
        "values": [
            -0.022374554,
            -0.004560777,
            0.013309286,
            -0.0545072,
            -0.02090443,
            0.012355714,
            0.015772128,
            0.0054723006,
            0.031729158,
            0.0058553913,
            0.027073925,
            -0.0045324513,
            -0.01544016,
            0.031618375,
            0.121548004,
            0.01925409,
            0.0008599909,
            0.0061733276,
            -0.009662611,
            -0.015545654,
            0.017062597,
            -0.008637558,
            -0.017125048,
            0.0077396077,
            -0.0153139075,
            0.011430326,
            0.020329107,
            -0.00451,
            0.024133444,
            0.0070407446,
            0.020197608,
            0.0015623937,
            -0.008911156,
            0.028138846,
            -0.017435355,
            -0.012656962,
            0.009481721,
            -0.016410641,
            -0.015019126,
            0.0144167375,
            -0.023614116,
            -0.010397569,
            -0.0024164703,
            -0.019404082,
            0.019276941,
            -0.011112846,
            0.014422737,
            -0.042639293,
            -0.014391114,
            0.008184219,
            -0.012202394,
            0.012318022,
            -0.010061107,
            -0.15826157,
            0.015428178,
            0.01053043,
            -0.0069031497,
            -0.010121202,
            -0.025695775,
            -0.028000489,
            -0.0070861652,
            -0.014084083,
            -0.008487853,
            -0.022122845,
            0.0084621115,
            -0.008990799,
            -0.020783192,
            0.010838266,
            0.0013916494,
            0.011982546,
            -0.015935048,
            0.015096186,
            -0.0058905873,
            -0.013116549,
            0.0068379883,
            0.012888465,
            0.017085187,
            -0.009906659,
            0.0012568614,
            -0.0037859855,
            -0.00014302225,
            -0.010684278,
            -0.025596805,
            -0.019016553,
            -0.0039289785,
            0.013050498,
            -0.008440098,
            -0.0061680563,
            0.017476493,
            -0.0027553823,
            0.027887736,
            0.0004526117,
            0.019584421,
            0.026628679,
            -0.01476688,
            -0.016032672,
            -0.005119599,
            -0.013419819,
            0.01832514,
            0.003933128,
            -0.02923016,
            -0.019359421,
            0.0042710565,
            -0.0033518076,
            0.0016226579,
            0.0041181133,
            0.020129561,
            0.015396381,
            0.010436243,
            -0.009389437,
            0.016541537,
            -0.011240879,
            -0.014253904,
            0.0004388115,
            -0.016207524,
            -0.17170691,
            0.011863509,
            -0.013637963,
            -0.020587489,
            0.02715423,
            0.029312648,
            0.0036574395,
            -0.013042048,
            0.0106446715,
            -0.015476047,
            0.0010107745,
            0.021761505,
            0.012514457,
            -0.025119826,
            -0.004807811,
            5.442418e-05,
            -0.010221458,
            -0.0052153785,
            0.024562212,
            -0.002690783,
            0.008822413,
            -0.0071469024,
            -0.000114820265,
            -0.02403243,
            0.012567555,
            0.010626729,
            -0.022717137,
            0.0022214095,
            0.020508392,
            -0.007117317,
            0.0022007062,
            -0.0215609,
            -0.0030656573,
            0.02189437,
            -0.002017665,
            0.006817107,
            0.016979372,
            0.0009748244,
            0.008738939,
            0.0155360615,
            -0.017952653,
            -0.01869836,
            -0.035592344,
            0.02924446,
            0.01135495,
            0.013205215,
            -0.015881864,
            -0.017085753,
            0.02960767,
            0.021404143,
            0.00704678,
            0.0040331692,
            -0.008532862,
            -0.0066544977,
            0.011101827,
            -0.023292493,
            -0.005853434,
            0.001055087,
            0.029621696,
            -0.015135841,
            0.0040566716,
            -0.0064473236,
            0.004719365,
            0.0086663,
            -0.009585091,
            0.00020336748,
            0.0091773,
            -0.0036694491,
            -0.015400841,
            -0.010638996,
            -0.011681303,
   
Modified at 2025-09-26 09:10:18
Previous
Gemini TTS
Next
Gemini Image creation interface (gemini-2.0-flash-exp-image-generation)
Built with