GRGlobalRouter Docs
Console

Chat / Text / POST

Create text embedding

Create OpenRouter text embeddings.

endpoint list

Mobile view shows the endpoint list. Use desktop view for parameters and examples.

MethodEndpointDescription
POST/api/v1/chat/completionsCreate an OpenRouter-style chat completion.
POST/api/v1/responsesCreate an OpenRouter-style response.
POST/api/v1/messagesCreate an OpenRouter-style message response.
POST/api/v1/embeddingsCreate OpenRouter text embeddings.
POST/api/v1/embeddings

For semantic search, retrieval, clustering, and similarity calculation. Supports text and text-array input for doubao-embedding-vision-251215; use the native Doubao multimodal endpoint for images and video.

Back to Chat / Text endpoint list

Request parameters

FieldTypeRequiredDescription
modelstringYesSee the OpenAPI schema for field details.
inputstring | string[]YesSee the OpenAPI schema for field details.

Response fields

FieldTypeRequiredDescription
bodyobjectNoObject fields are passed through according to the current OpenRouter or GR endpoint implementation.

Errors

401UNAUTHORIZED

Missing or invalid Authorization Bearer token.

403FORBIDDEN

The current API key is not authorized for this scope, model, or management capability.

422VALIDATION_ERROR

The request body, path parameters, or query parameters do not match the endpoint schema.

Notes

  • Use a GlobalRouter API key; upstream OpenRouter API keys are never exposed to tenants.