Aleph Alpha Tasks API

Requests for different types of tasks you can request with our models.

GitHub OpenAPI
Business capability
Artificial Intelligence Management BC-610.60

Operations 16

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /complete Complete a text prompt with a model · Completion #
Ask an LLM
“How do I get a model to finish a sentence or write a story for me?”
“Can I cap how many tokens a model generates?”
Tell an agent
Complete the prompt {prompt} with model {model}.
Generate up to {maximum_tokens} tokens finishing {prompt} on {model}.
POST /complete/json Get a JSON completion from a model · JSON Completion #
Ask an LLM
“Can the model return a completion that is guaranteed to be valid JSON?”
“Is JSON completion available for all models?”
Tell an agent
Return a valid JSON completion for {prompt} using model {model}.
Generate a JSON-formatted response to {prompt} on {model} with at most {maximum_tokens} tokens.
POST /chat/completions Chat with a model · Chat #
Ask an LLM
“How do I send a chat conversation to a model and get replies?”
“Can I get a model to call a function during a chat?”
Tell an agent
Chat with {model} using messages {messages}.
Send {messages} to {model} and return {n} chat replies.
POST /embeddings Create vector embeddings for text · Embeddings #
Ask an LLM
“How do I turn a piece of text into vector embeddings for semantic search?”
“Can I get embeddings back as base64 instead of floats?”
Tell an agent
Create embeddings for {input} with model {model}.
Embed {input} using {model} and return {encoding_format} vectors.
POST /semantic_embed Embed a prompt with a semantic method · Semantic Embeddings #
Ask an LLM
“How do I embed a single prompt using a semantic embedding method?”
“Can I compress a semantic embedding to a smaller size?”
Tell an agent
Embed {prompt} with semantic method {representation} on {model}.
Create a {representation} embedding of {prompt} compressed to {compress_to_size} dimensions.
POST /batch_semantic_embed Embed many prompts with a semantic method · Batched Semantic Embeddings #
Ask an LLM
“Can I embed a whole list of prompts at once with a semantic method?”
“Is there a way to normalize a batch of semantic embeddings?”
Tell an agent
Batch-embed {prompts} with semantic method {representation} on {model}.
Embed {prompts} using {representation} and normalize the vectors.
POST /instructable_embed Embed text with an instruction · Semantic Embeddings with instructions #
Ask an LLM
“Can I embed text while steering the embedding with an instruction?”
“What does instructable embedding return for a given instruction?”
Tell an agent
Embed {input} with instruction {instruction} on {model}.
Create an instructable embedding of {input} using {instruction} and return normalized vectors.
POST /embed Embed text with the deprecated endpoint · Embeddings (Deprecated) #
Ask an LLM
“Is the older embed endpoint still available for getting token embeddings?”
“Can I pool token embeddings from specific layers with the deprecated embed call?”
Tell an agent
Use the deprecated embed endpoint to embed {prompt} with {model}.
Get token embeddings for {prompt} on {model} using pooling {pooling}.
POST /evaluate Evaluate a prompt's completion likelihood · Evaluate #
Ask an LLM
“How likely is the model to complete a given prompt?”
“Can I get a likelihood score for a prompt before generating text?”
Tell an agent
Evaluate prompt {prompt} on model {model} expecting completion {completion_expected}.
Score how likely {model} is to finish {prompt} with {completion_expected}.
POST /explain Explain a completion's prompt source · Explanation #
Ask an LLM
“Which parts of my prompt most influenced each token of the model's output?”
“Can I get attribution scores for a completion?”
Tell an agent
Explain completion {target} of prompt {prompt} on {model}.
Attribute each token of {target} to prompt sections for {model}.
POST /tokenize Tokenize a prompt for a model · Tokenize #
Ask an LLM
“How do I split a prompt into tokens for a model?”
“Can I get both the tokens and their IDs for a prompt?”
Tell an agent
Tokenize {prompt} for {model} and return {tokens} and {token_ids}.
Break {prompt} down into tokens and IDs on {model}.
POST /detokenize Convert token IDs back to text · Detokenize #
Ask an LLM
“How do I turn a list of token IDs back into readable text?”
“Can I decode token IDs for a model?”
Tell an agent
Detokenize {token_ids} for {model}.
Turn token IDs {token_ids} back into text on {model}.
GET /users/me/requests List my recent API tasks · Query Recent Usage (Deprecated) #
Ask an LLM
“What tasks have I run recently?”
“How much did my last ten tasks cost?”
Tell an agent
List my ten most recent tasks.
Show my recent usage and costs.
POST /transcribe Transcribe an audio file · Transcribe audio #
Ask an LLM
“How do I turn an audio file into text?”
“Can I transcribe speech in a specific language?”
Tell an agent
Transcribe {audiofile}.
Transcribe {audiofile} with metadata {metadata}.
POST /translate Translate text into another language · Translation #
Ask an LLM
“How do I translate text from one language to another?”
“Can I choose the target language for a translation?”
Tell an agent
Translate {source} into {target_language} using {model}.
Translate {source} to {target_language}.
POST /rerank Rerank documents by relevance to a query · Rerank #
Ask an LLM
“How do I rank a list of documents against a query?”
“Can I get relevance scores for each document?”
Tell an agent
Rerank {documents} against query {query}.
Rank {documents} by relevance to {query}, top {top_n}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aleph-alpha:aleph-alpha-tasks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aleph-alpha-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Aleph Alpha Tasks API
  version: 4.7.0
  description: Access and interact with Aleph Alpha models and functionality over HTTP endpoints.
  contact:
    email: support@aleph-alpha.com
servers:
- url: '{host}/v1'
  variables:
    host:
      default: https://api.pharia.example.com
tags:


# --- truncated at 32 KB (115 KB total) ---
# Full source: https://artifacts.apis.io/aleph-alpha/openapi/aleph-alpha-tasks-api-openapi.yml