{"uid":"cap_cJpTKUXSIUkhxUzKQ8-YY","slug":"venice-ai-embeddings-c68866c9","name":"Venice AI Embeddings","description":"Generate embeddings.","url":"https://api.venice.ai/api/v1/embeddings?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","example":{"input":"The quick brown fox jumped over the lazy dog","model":"text-embedding-bge-m3","encoding_format":"float"},"required":["input","model"],"properties":{"user":{"type":"string","description":"This is an unused parameter and is discarded by Venice. It is supported solely for API compatibility with OpenAI."},"input":{"anyOf":[{"type":"string","title":"string","example":"This is a test.","minLength":1,"description":"The string that will be turned into an embedding. Cannot be an empty string."},{"type":"array","items":{"type":"string"},"title":"array","example":["This is a test."],"maxItems":2048,"minItems":1,"description":"The array of strings that will be turned into an embedding. Array must be 2048 dimensions or less."},{"type":"array","items":{"type":"integer","minimum":1},"title":"array","example":[1212,318,257,1332,13],"maxItems":2048,"minItems":1,"description":"The array of integers that will be turned into an embedding. Array must be 2048 dimensions or less."},{"type":"array","items":{"type":"array","items":{"type":"integer"},"minItems":1},"title":"array","example":[[1212,318,257,1332,13]],"maxItems":2048,"minItems":1,"description":"The array of arrays containing integers that will be turned into an embedding. Array must be 2048 dimensions or less."}],"example":"The quick brown fox jumped over the lazy dog","description":"Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model (8192 tokens), cannot be an empty string, and any array must be 2048 dimensions or less."},"model":{"anyOf":[{"type":"string"},{"enum":["text-embedding-bge-m3","text-embedding-bge-en-icl","text-embedding-qwen3-8b","text-embedding-qwen3-0-6b","text-embedding-multilingual-e5-large-instruct","text-embedding-3-small","text-embedding-3-large","gemini-embedding-2-preview","text-embedding-nemotron-embed-vl-1b-v2"],"type":"string"}],"example":"text-embedding-bge-m3","description":"ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them."},"dimensions":{"type":"integer","minimum":1,"description":"The number of dimensions the resulting output embeddings should have."},"encoding_format":{"enum":["float","base64"],"type":"string","default":"float","example":"float","description":"The format to return the embeddings in. Can be either `float` or `base64`."}},"description":"Create embeddings for the supplied input.","additionalProperties":false},"responseSchema":{"type":"object","example":{"data":[{"index":0,"object":"embedding","embedding":[0.0023064255,-0.009327292,0.015797377]}],"model":"text-embedding-bge-m3","usage":{"total_tokens":8,"prompt_tokens":8},"object":"list"},"required":["data","model","object","usage"],"properties":{"data":{"type":"array","items":{"type":"object","required":["embedding","index","object"],"properties":{"index":{"type":"integer","description":"The index of this embedding in the list"},"object":{"enum":["embedding"],"type":"string","description":"The object type, which is always \"embedding\""},"embedding":{"type":"array","items":{"type":"number"},"description":"The embedding vector"}}},"description":"The list of embeddings generated by the model."},"model":{"type":"string","description":"The name of the model used to generate the embedding."},"usage":{"type":"object","required":["prompt_tokens","total_tokens"],"properties":{"total_tokens":{"type":"integer","description":"The total number of tokens used by the request."},"prompt_tokens":{"type":"integer","description":"The number of tokens used by the prompt."}},"description":"The usage information for the request."},"object":{"enum":["list"],"type":"string","description":"The object type, which is always \"list\""}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"10","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$10/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XR4a28bdDKoG1nuB7h0uH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text or token arrays into vector embeddings using a choice of embedding models, OpenAI-compatible API.","exampleAgentPrompt":"Generate a float-format vector embedding for the text 'The quick brown fox jumped over the lazy dog' using the text-embedding-bge-m3 model on Venice AI.","exampleUseCases":null,"resultDescription":"Returns a list of embedding vectors (arrays of floats), the model name used, and token usage (prompt_tokens and total_tokens). Each embedding object includes its index in the batch and the embedding array itself.","failureModes":["Empty string input returns validation error","Input exceeding 8192 tokens causes rejection","Array dimensions exceeding 2048 cause rejection","Invalid or unsupported model name returns error","402 Payment Required if x402 wallet balance is insufficient","Missing required fields (input or model) returns 400 error"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible embeddings with a choice of diverse models (BGE, Qwen3, Gemini, E5, Nemotron, etc.) and want to pay per-call via USDC/x402 without a subscription. Prefer it over OpenAI's embeddings endpoint when you need multilingual models or crypto-native payment, and over self-hosted solutions when you want managed infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:47:09.400Z","isFirstParty":false,"canonicalSlug":"venice-ai-embeddings-c68866c9"}