Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Kymaapi Com Embeddings API
version: 1.0.0
contact:
name: Kyma API
url: https://kymaapi.com
email: support@kymaapi.com
license:
name: Proprietary
termsOfService: https://kymaapi.com/terms
description: 'Operations tagged Embeddings across 2 of this provider''s published API definitions: kymaapi-com-openapi.json, kymaapi-com-v1-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://kymaapi.com/v1
description: Production
security:
- BearerAuth: []
tags:
- name: Embeddings
paths:
/embeddings:
post:
summary: Create embeddings
description: 'Turn text into vectors for retrieval. OpenAI-compatible, so an existing `client.embeddings.create()` call works by changing the base URL and the model id.
Billed on input tokens only — an embedding response is a vector, so there is no completion side to charge for. `usage.cost` carries the exact price of the call.
No streaming: the vector arrives whole. Use `GET /v1/models?type=embedding` to list what is available.'
operationId: createEmbedding
tags:
- Embeddings
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- model
- input
properties:
model:
type: string
example: embeddinggemma-300m
description: An embedding model id. A chat model here returns 400.
input:
description: A string, or an array of strings to embed in one call.
oneOf:
- type: string
- type: array
items:
type: string
example:
- first document
- second document
dimensions:
type: integer
description: Requested vector size, when the model supports truncation.
encoding_format:
type: string
enum:
- float
- base64
default: float
responses:
'200':
description: One vector per input, in the order given.
content:
application/json:
schema:
type: object
properties:
object:
type: string
example: list
model:
type: string
example: embeddinggemma-300m
data:
type: array
items:
type: object
properties:
object:
type: string
example: embedding
index:
type: integer
embedding:
type: array
items:
type: number
usage:
type: object
properties:
prompt_tokens:
type: integer
total_tokens:
type: integer
cost:
type: number
description: USD charged for this call.
'400':
description: Missing `input`, or a model that is not an embedding model.
'401':
description: Missing or invalid API key.
'402':
description: Insufficient balance.
'404':
description: Unknown model.
servers:
- url: https://kymaapi.com/v1
description: Production
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: Kyma API key (starts with ky-) or session token (starts with ks-)
x-refined-from:
- kymaapi-com-openapi.json
- kymaapi-com-v1-openapi.json