API Documentation
Last updated
Last updated
Swiftask is an AI aggregator platform allowing users to access AI functionalities provided by multiple vendors through a unified interface. This document describes how developers can interact with the Swiftask API to send and receive AI-generated responses.
To ensure secure access to the Swiftask API, authentication and authorization are required for all API requests. Below are the steps to obtain and use an API key, which is necessary for accessing the AI Bot endpoint.
Create an Account: If you haven't already, you need to sign up for an account at Swiftask.
Generate API Key: Once logged in, navigate to the Developers space section of your account, there, you will find an option to generate a new API key. Click on this option and label your new key for easy identification later.
Record Your API Key: After generation, your API key will be displayed. It is crucial to copy and securely store this key as it will not be visible again. If you lose your API key, you will need to generate a new one.
https://graphql.swiftask.ai/api
POST /ai/:slug
This endpoint is used to interact with a specific AI identified by a unique slug. It accepts JSON input containing session details and user input, and returns AI-generated responses.
URL Parameter:
slug
: Unique string identifier for the AI bot.
HTTP Method: POST
Headers:
Content-Type
: application/json
Authorization
: Bearer <swiftask_api_key>
Request Body:
Response:
Responses from this API will also include standard HTTP status codes to indicate success or failure of the requested operations. Common errors include:
400 Bad Request
: Input data is malformed or validation failed.
401 Unauthorized
: Missing or invalid authentication token.
404 Not Found
: The specified AI slug was not found.
500 Internal Server Error
: An error occurred on the server which was not the client's fault.
Ensure the session ID is unique for each session to avoid data conflicts.
Handle file data carefully, especially when dealing with personal or sensitive information.
Monitor your usage to avoid hitting subscription limits unexpectedly.
This API documentation covers the main aspects needed to integrate with various AI bots via Swiftask. For further details or support, contact the Swiftask support team.
Below is a table listing each AI name along with its corresponding slug. This reference is crucial when making API requests to interact with different AI functionalities.
AI Name | Slug |
---|---|
Video generator
Document analyzer
Mistral Codestral Mamba
codestral-mamba
Mistral Codestral
codestral
Meta Llama 3.1 405b
llama31
OpenAI o1-mini
o1-mini
OpenAI o1-preview
o1-preview
Motivational Speaker
motivational_speaker
Motivational Coach
motivational_coach
Educational Content Creator
educational_content_creator
Debate Coach
debate_coach
Chef
chef
Career Counselor
career_counselor
Biblical Translator
biblical_translator
Babysitter
babysitter
Automobile Mechanic
automobile_mechanic
Astrologer
astrologer
Artist Advisor
artist_advisor
AI Writing Tutor
ai_writing_tutor
AI Assisted Doctor
ai_assisted_doctor
Accountant
accountant
Academician
academician
Website DataSource
website
Mistral Nemo
open-mistral-nemo
Meeting Transcription
audioainew
UX/UI Developer
ux_ui_developer
Relationship Coach
relationship_coach
Ascii Artist
ascii_artist
Advertiser
advertiser
Position Interviewer
\_position\_\_interviewer
Prompt Engineer
promptengineer
Agentic RAG
agenticrag
Flux Pro
fluxpro
SQL Agent (BETA)
sqlagent
PuLID
pulid
Face Swap
faceswap
Live Portrait
liveportrait
DEMUCS
demucs
Face To Many
facetomany
GPT-4o mini
gpt-4o-mini
ElevenLabs
elevenlabs
Claude 3.5 Sonnet
claude35sonnet
GPT-3.5
gpt35
GPT-4o
gpt-4o
CEO GPT
ceo-gptwzsgv
Stability AI Upscale
stabilityai-upscale
Stable Diffusion V3
stablediffusionv3
Llama 3
llama3
Event Hunter
eventhunter
Perplexity
perplexityonline
RAG
new_rag
Claude 3 Haiku
claude3haiku
Claude 3 Sonnet
claude3sonnet
Thanos Lite
thanoslite
Thanos
thanos
Claude 3 Opus
claude3opus
Text to Speech
text2speech
Mistral Medium
mistralmedium
Mistral Large
mistrallarge
Gemini Pro 1.5
geminipro
Claude 2.1
claudev21
GPT4 Vision Turbo
gpt4vision
GPT Pro
gpt4pro
DALL-E 3
dallee3
Text Corrector
languagecorrector
English Translator
englishtranslator
French Translator
frenchtranslator
MagicColor
magiccolor
Face Restoration
facerestoration
Stable Diffusion
stablediffusion
ClaudeV1
claudeinstant1
ClaudeV2
claude
Cohere
cohere
Web Search
webreporter
Plagiarism Checker
plagiarismchecker
OCR
ocr
GPT-3.5 16K
gpt316k
GPT-4 Turbo
gpt4
AudioIA
audioia
ChatOnPDF
chatpdf
GDocs
gdrive
DocumentAI
document-ai
Scrapio
scrapio
Swiftask
swiftask