{"components":{"securitySchemes":{"BearerAuth":{"bearerFormat":"API Key","scheme":"bearer","type":"http"}}},"info":{"description":"Jina embeddings and reranking served via the AIsa relay (OpenAI-compatible) path. Includes text embeddings (jina-embeddings-v3 and jina-embeddings-v5-text-small, both 1024-dim) and document reranking (jina-reranker-v3). Billing is token-based for both endpoints.","title":"Jina Embeddings & Rerank API","version":"1.0.0"},"openapi":"3.0.3","paths":{"/embeddings":{"post":{"description":"Generate embedding vectors for one or more input strings using jina-embeddings-v3 or jina-embeddings-v5-text-small (both 1024-dim output). OpenAI-compatible request and response. Served via the AIsa relay path /v1/embeddings. Billing is token-based.","operationId":"createEmbedding","requestBody":{"content":{"application/json":{"example":{"input":"A fast, OpenAI-compatible embeddings endpoint.","model":"jina-embeddings-v3"},"schema":{"properties":{"input":{"description":"A non-empty string, or an array of non-empty strings, to embed.","example":"A fast, OpenAI-compatible embeddings endpoint.","oneOf":[{"type":"string"},{"items":{"type":"string"},"minItems":1,"type":"array"}]},"model":{"description":"Embedding model name. Available: jina-embeddings-v3 or jina-embeddings-v5-text-small (both 1024-dim).","enum":["jina-embeddings-v3","jina-embeddings-v5-text-small"],"example":"jina-embeddings-v3","type":"string"}},"required":["model","input"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"data":[{"embedding":[0.0123,-0.0456,0.0789],"index":0,"object":"embedding"}],"model":"jina-embeddings-v3","object":"list","usage":{"total_tokens":9}},"schema":{"properties":{"data":{"items":{"properties":{"embedding":{"description":"1024-dim embedding vector.","items":{"format":"float","type":"number"},"type":"array"},"index":{"example":0,"type":"integer"},"object":{"example":"embedding","type":"string"}},"type":"object"},"type":"array"},"model":{"example":"jina-embeddings-v3","type":"string"},"object":{"example":"list","type":"string"},"usage":{"properties":{"total_tokens":{"example":9,"type":"integer"}},"type":"object"}},"type":"object"}}},"description":"Embedding list."}},"summary":"Create embeddings"}},"/rerank":{"post":{"description":"Rerank a list of documents against a query using jina-reranker-v3, returning documents ordered by relevance score. Served via the AIsa relay path /v1/rerank. Billing is token-based.","operationId":"createRerank","requestBody":{"content":{"application/json":{"example":{"documents":["Paris is the capital of France.","Berlin is the capital of Germany.","The Eiffel Tower is in Paris."],"model":"jina-reranker-v3","query":"What is the capital of France?","top_n":2},"schema":{"properties":{"documents":{"description":"Non-empty array of document strings to rerank.","example":["Paris is the capital of France.","Berlin is the capital of Germany.","The Eiffel Tower is in Paris."],"items":{"type":"string"},"minItems":1,"type":"array"},"model":{"description":"Rerank model name.","example":"jina-reranker-v3","type":"string"},"query":{"description":"Non-empty query string to rank documents against.","example":"What is the capital of France?","type":"string"},"top_n":{"description":"Optional. Return only the top N most relevant documents.","example":2,"type":"integer"}},"required":["model","query","documents"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"model":"jina-reranker-v3","results":[{"document":{"text":"Paris is the capital of France."},"index":0,"relevance_score":0.98},{"document":{"text":"The Eiffel Tower is in Paris."},"index":2,"relevance_score":0.71}],"usage":{"total_tokens":27}},"schema":{"properties":{"model":{"example":"jina-reranker-v3","type":"string"},"results":{"items":{"properties":{"document":{"properties":{"text":{"example":"Paris is the capital of France.","type":"string"}},"type":"object"},"index":{"description":"Index of the document in the original request array.","example":0,"type":"integer"},"relevance_score":{"example":0.98,"format":"float","type":"number"}},"type":"object"},"type":"array"},"usage":{"properties":{"total_tokens":{"example":27,"type":"integer"}},"type":"object"}},"type":"object"}}},"description":"Reranked results ordered by relevance."}},"summary":"Rerank documents"}}},"security":[{"BearerAuth":[]}],"servers":[{"url":"https://api.aisa.one/v1"}],"tags":[{"name":"Embeddings & Rerank"}]}
