Java SDK is coming soon.
Installation
- Python
- Node.js
- Go
- Java
httpx and Pydantic v2.Initialize the client
- Python
- Node.js
- Go
AsyncMeshAPI:Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Install the MeshAPI SDK for your language and make your first API call.
pip install meshapi
pip install 'meshapi[realtime]'
httpx and Pydantic v2.npm install meshapi-node-sdk
npm install ws for realtime WebSocket support; Node 22+ has WebSocket built in.go get github.com/aifiesta/meshapi-go-sdk
from meshapi import MeshAPI
client = MeshAPI(
base_url="https://api.meshapi.ai",
token="rsk_...",
)
AsyncMeshAPI:from meshapi import AsyncMeshAPI
async with AsyncMeshAPI(base_url="https://api.meshapi.ai", token="rsk_...") as client:
...
import { MeshAPI } from "meshapi-node-sdk";
const client = new MeshAPI({
baseUrl: "https://api.meshapi.ai",
token: "rsk_...",
});
import meshapi "github.com/aifiesta/meshapi-go-sdk"
client := meshapi.New(meshapi.Config{
BaseURL: "https://api.meshapi.ai",
Token: "rsk_...",
})
| Page | What it covers |
|---|---|
| Chat Completions | Basic chat, multi-turn, templates, async |
| Streaming | Streaming responses, cancellation, recovery |
| Structured Output | JSON schema response format |
| Embeddings | Single and batch embeddings |
| Image Generation | Generate images |
| Audio | Text-to-speech, speech-to-text, translate to English, list voices |
| Video Generation | Submit tasks, poll status, list |
| Batches | Async batch job lifecycle |
| Model Compare | Fan out to multiple models |
| Responses API | Responses API create and stream |
| Prompt Templates | Create, update, delete, use in chat |
| RAG (Files & Search) | Upload, embed, and search documents |
| Realtime Audio | Bidirectional WebSocket audio sessions |
| Models | List models, filter free/paid |
| Error Handling | Typed exceptions, error codes, retries |