Skip to content
v0.8.4stable

Embeddings

POST /v1/embeddings  compatible  semantic operation embed  contract revision 1

State semantics: stateless

Raw contract deviations

These statements are source-contract evidence. Use the examples, field table, and Profile coverage matrix for ordinary integration, and expand this list when investigating a compatibility boundary.

  • gateway routes model names
  • unknown request fields are rejected before provider I/O
  • provider-specific unsupported fields are rejected before provider I/O
Terminal window
curl https://halro.example.com/v1/embeddings \
-H "Authorization: Bearer $HALRO_GATEWAY_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "embed", "input": ["first passage", "second passage"] }'
  • Authorization
  • Content-Type
Request fields
FieldProvider Profiles that do not support itCombination-level constraints
model
inputbedrock.runtime.invoke.titan-embed-text-v2.v1
encoding_formatgemini.generate-content.text.v1beta, bedrock.runtime.invoke.titan-embed-text-v2.v1
dimensionsbedrock.runtime.invoke.titan-embed-text-v2.v1
usergemini.generate-content.text.v1beta, bedrock.runtime.invoke.titan-embed-text-v2.v1

object data model usage

Provider Profile contract coverage and current availability

Section titled “Provider Profile contract coverage and current availability”
Provider Profile contract coverage and current availability
Provider ProfileMaturityCurrent buildUnsupported request fields
openai.chat-embeddings.v1compatiblecreatableundeclared
azure-openai.chat-embeddings.v1compatiblecreatableundeclared
openai-compatible.chat-embeddings.v1compatiblecreatableundeclared
gemini.generate-content.text.v1betacompatiblecreatableencoding_format, user
bedrock.runtime.invoke.titan-embed-text-v2.v1experimentalwithheld (cannot create)input, encoding_format, dimensions, user
gemini.generate-content.text.v1beta
  • token usage is locally estimated when Gemini omits usage
bedrock.runtime.invoke.titan-embed-text-v2.v1
  • only one string input is accepted
  • dimensions are limited to 256, 512, or 1024
  • native requests force normalized float embeddings
  • Bedrock inputTextTokenCount is mapped to OpenAI usage

Verified evidence: gateway_contract, provider_transport_fixture, sdk_blackbox

openai-go, openai-node, openai-python

See Embedding index and Rerank planning.


Fields, coverage, transformations, and deviations are generated from Halro 8f185de7674c (scripts/generate-api-pages-en.mjs; synchronized manifest digest 8e5e7a0a794721aa…). The synchronized copy contains 1 recorded accuracy correction(s); source manifest digest b321ee18ad2e38f3…. The contract currently carries field names, not complete types, required relationships, or value semantics.