Add media generation API specification for images, music, video and more #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements issue #13 by providing a comprehensive OpenAI-compatible API specification for media generation services including images, audio (speech and transcription), music, and video.
What's Included
📄 Files Added
media-api-spec.yaml(37 KB) - Complete OpenAPI 3.1 specificationmedia-api-spec.json(48 KB) - JSON version of the specificationMEDIA_API.md(22 KB) - Comprehensive documentationREADME_MEDIA_API.md(13 KB) - Quick start guideFeatures Implemented
🖼️ Image Generation
/v1/images/generations,/v1/images/edits,/v1/images/variations🎵 Audio Services
/v1/audio/speech,/v1/audio/transcriptions,/v1/audio/translations🎼 Music Generation
/v1/music/generations,/v1/music/generations/{task_id}🎬 Video Generation (Planned)
/v1/video/generationsTechnical Highlights
OpenAI Compatibility
base_urlto use this APIProvider Abstraction
Streaming Support
Async Task Management
Auto Failover
Implementation Guide
The documentation includes a complete implementation guide for the API Gateway:
Example Provider Integration
Usage Examples
Generate an Image (Python)
Transcribe Audio with Speaker Identification
Generate Music
Validation
The OpenAPI specification has been validated:
Integration with Deep Assistant
This specification is designed to integrate with:
Provider Comparison
Testing
You can test the specification with:
Next Steps
Documentation Links
Closes
Fixes #13
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com