Skip to main content
POST

Headers

X-API-Key
string

Compute/Grid API key with grid:write scope. Requests debit prepaid credits. Omit to use the x402 challenge.

Example:

"x402c_..."

X-Payment
string

x402 payment payload. Send after receiving the endpoint's 402 challenge.

Body

application/json
model
string
required
Example:

"embeddinggemma-2"

input
required

A single text string; 1-2048 strings for legacy text models; or 1-16 ordered string/structured items for EmbeddingGemma 2. Each item produces one vector at the matching response index.

Minimum string length: 1
dimensions

Optional model-specific output dimension. Omit for the model's native dimension. Unsupported model/dimension pairs return 400.

Available options:
768,
512,
256,
128
input_type

Optional model-specific retrieval behavior. This schema intentionally has no global default.

Available options:
query,
document
encoding_format
enum<string>
default:float
Available options:
float
tier
enum<string>
Available options:
standard,
confidential
use_credits
boolean

Use an authenticated wallet session's credits when no API key is supplied.

user
string

Optional OpenAI-compatible caller identifier.

Response

One finite, unit-normalized float vector per input item, ordered by index.

object
enum<string>
required
Available options:
list
data
object[]
required
model
string
required
usage
object
required
processor_revision
string

Present for EmbeddingGemma 2.

embedding_protocol
enum<string>
Available options:
embedding-multimodal-v1
billing_pending
boolean

Present and true only when x402 capture succeeded but durable accounting finalization is still recovering. Do not resubmit the paid request.

job_id
string<uuid>

Present with billing_pending so accounting recovery is correlated idempotently.