Swift AI
Endpoints
Chat 1
Given a list of messages comprising a conversation, the model will return a response.
Embeddings 1
Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
Moderations 1
Given some input text, outputs if the model classifies it as potentially harmful across several categories.
List Models 1
List all available models for all endpoints
What is the Swift AI API?
Access a wide range of AI modelsβ‘, including OpenAI π€,DeepSeek π, Claude π§ , Gemini π, and Meta LLaMA π¦, with seamless compatibility via the Swift API β‘
Swift AI API is available on the JoJ API marketplace. Subscribe with a single JoJ API key, call it through one gateway, and pay from one wallet β no separate account or contract with the provider.
Swift AI API endpoints
- POST
/chat/completionsCreate Chat Completion
Creates a model response for the given chat conversation.
- POST
/embeddingsCreate Embeddings
Creates an embedding vector representing the input text.
- POST
/moderationsCreate Moderation
Classifies if text is potentially harmful.
- GET
/modelsList Models
Return a list of available models on this API