Quickstart

Three steps of setup, then one request. Nothing here needs a sales call or a subscription.

View as Markdown

Set up

  1. Create an account and add credit on the credit page. Credit is spent per request.
  2. Create an API key under API keys. The secret is shown once and never again.
  3. Pick a model id from the live catalog, which shows prices and how many providers are online right now.

Make a request

Send up to 32 strings in input. dimensions: 1536 returns one 1,536-value vector per item. Embedding models are available through the API and are not shown in Studio.
POST /v1/embeddingsEMBEDDINGS · openai_embeddings +

Working request

curl https://api.openmayhem.ai/v1/embeddings \
  -H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "qwen/qwen3-embedding-4b",
  "input": [
    "A distributed inference network for open models.",
    "Providers earn for serving verified AI requests."
  ],
  "dimensions": 1536
}'

Parameters

ParameterRequiredTypeDefaultAllowed valuesLimits and shape
inputRequiredstring | array——min length 1; min items 1; max items 32 JSON array
modelRequiredstring—Qwen/Qwen3-Embedding-4B—
dimensionsOptionalinteger——min 32; max 2560
encoding_formatOptionalstringfloatfloat, base64—

Agent drop-ins

This is a media endpoint, so it cannot replace the text model that drives a coding agent. Call the request above from the agent’s HTTP or tool layer.

Routing and trust: Catalog filters, provider constraints, attestation and retail cost limits.