Quickstart
Three steps of setup, then one request. Nothing here needs a sales call or a subscription.
Set up
- Create an account and add credit on the credit page. Credit is spent per request.
- Create an API key under API keys. The secret is shown once and never again.
- 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
| Parameter | Required | Type | Default | Allowed values | Limits and shape |
|---|---|---|---|---|---|
input | Required | string | array | — | — | min length 1; min items 1; max items 32 JSON array |
model | Required | string | — | Qwen/Qwen3-Embedding-4B | — |
dimensions | Optional | integer | — | — | min 32; max 2560 |
encoding_format | Optional | string | float | float, 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.