{"openapi":"3.2.0","info":{"title":"Swift AI API","description":"Access a wide range of AI models⚡, including OpenAI 🤖,DeepSeek 🔍, Claude 🧠, Gemini 🌟, and Meta LLaMA 🦙, with seamless compatibility via the Swift API ⚡","version":"1.0.0"},"servers":[{"url":"https://arejz.jojapi.net"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"Chat","description":"Given a list of messages comprising a conversation, the model will return a response."},{"name":"Embeddings","description":"Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms."},{"name":"Moderations","description":"Given some input text, outputs if the model classifies it as potentially harmful across several categories."},{"name":"List Models","description":"List all available models for all endpoints"}],"paths":{"/chat/completions":{"post":{"operationId":"post_chat_completions","summary":"Create Chat Completion","description":"Creates a model response for the given chat conversation.","tags":["Chat"],"requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":{"model":"gpt-5-mini","stream":false,"messages":[{"role":"user","content":"How many days in 3 weeks."}]}}}}}},"/embeddings":{"post":{"operationId":"post_embeddings","summary":"Create Embeddings","description":"Creates an embedding vector representing the input text.","tags":["Embeddings"],"requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":{"input":"Today is a wonderful day","model":"text-embedding-3-large"}}}}}},"/moderations":{"post":{"operationId":"post_moderations","summary":"Create Moderation","description":"Classifies if text is potentially harmful.","tags":["Moderations"],"requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":{"model":"text-moderation-latest","input":"Today is a wonderful day to build something people love!"}}}}}},"/models":{"get":{"operationId":"get_models","summary":"List Models","description":"Return a list of available models on this API","tags":["List Models"]}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-JoJAPI-Key","description":"Your JoJ API key."}}}}