Browse and explore all available endpoints with examples and schemas.
๐
GET /openapi.json
Retrieve the full OpenAPI specification in JSON format.
curl -X GET "https://mgzon-mgzon-app.hf.space/openapi.json"
โ๏ธ
GET /api/settings
Get current API settings and configurations.
curl -X GET "https://mgzon-mgzon-app.hf.space/api/settings"
๐ค
GET /api/model-info
Fetch information about the AI models in use.
curl -X GET "https://mgzon-mgzon-app.hf.space/api/model-info"
๐
GET /api/performance
View performance statistics for the API.
curl -X GET "https://mgzon-mgzon-app.hf.space/api/performance"
๐ฌ
POST /api/chat
Interact with the chatbot for queries and code generation.
curl -X POST "https://mgzon-mgzon-app.hf.space/api/chat" -H "Content-Type: application/json" -d '{"message": "Generate code"}'
๐ผ๏ธ
POST /api/image-generation
Generate images based on text prompts.
curl -X POST "https://mgzon-mgzon-app.hf.space/api/image-generation" -H "Content-Type: application/json" -d '{"prompt": "A futuristic city"}'
๐ค
POST /api/audio-transcription
Transcribe audio files to text.
curl -X POST "https://mgzon-mgzon-app.hf.space/api/audio-transcription" -F "file=@audio.wav"
๐
POST /api/text-to-speech
Convert text to speech audio.
curl -X POST "https://mgzon-mgzon-app.hf.space/api/text-to-speech" -H "Content-Type: application/json" -d '{"text": "Hello world"}'
๐ป
POST /api/code
Generate or analyze code snippets.
curl -X POST "https://mgzon-mgzon-app.hf.space/api/code" -H "Content-Type: application/json" -d '{"prompt": "Write a Python function"}'
๐
POST /api/analysis
Perform text or data analysis.
curl -X POST "https://mgzon-mgzon-app.hf.space/api/analysis" -H "Content-Type: application/json" -d '{"data": "Analyze this text"}'
๐ผ๏ธ
POST /api/image-analysis
Analyze images for content and features.
curl -X POST "https://mgzon-mgzon-app.hf.space/api/image-analysis" -F "file=@image.jpg"
๐งช
GET /api/test-model
Test the AI model with a sample query.
curl -X GET "https://mgzon-mgzon-app.hf.space/api/test-model"
๐
GET /api/conversations
List all user conversations.
curl -X GET "https://mgzon-mgzon-app.hf.space/api/conversations"
โ
POST /api/conversations
Create a new conversation.
curl -X POST "https://mgzon-mgzon-app.hf.space/api/conversations" -H "Content-Type: application/json" -d '{}'
๐
GET /api/conversations/{conversation_id}
Get details of a specific conversation.
curl -X GET "https://mgzon-mgzon-app.hf.space/api/conversations/123"
๐๏ธ
DELETE /api/conversations/{conversation_id}
Delete a conversation.
curl -X DELETE "https://mgzon-mgzon-app.hf.space/api/conversations/123"
โ๏ธ
PUT /api/conversations/{conversation_id}/title
Update conversation title.
curl -X PUT "https://mgzon-mgzon-app.hf.space/api/conversations/123/title" -H "Content-Type: application/json" -d '{"title": "New Title"}'
๐ค
PUT /users/me
Update current user settings.
curl -X PUT "https://mgzon-mgzon-app.hf.space/users/me" -H "Content-Type: application/json" -d '{"settings": {}}'
๐
GET /api/verify-token
Verify authentication token.
curl -X GET "https://mgzon-mgzon-app.hf.space/api/verify-token"
๐ช
POST /logout
Logout the current user.
curl -X POST "https://mgzon-mgzon-app.hf.space/logout"
๐
GET /debug/routes
Debug API routes (dev only).
curl -X GET "https://mgzon-mgzon-app.hf.space/debug/routes"
๐
GET /
Root endpoint for the app.
curl -X GET "https://mgzon-mgzon-app.hf.space/"
๐
GET /docs
API Documentation page (you're here!).
curl -X GET "https://mgzon-mgzon-app.hf.space/docs"