Web Studio Media Workspace
Web Studio is the multimedia creation and media gateway workspace at studio.d2capi.com. The web UI and WeChat Official Account share the same media model catalog, parameter constraints, routes, and billing guide.
Entry Points
Web Capabilities
- AI Text: writing, rewriting, summarization, translation, explanation, and structured text tasks.
- AI Image: prompt-based image generation with parameters from the active model.
- AI Video: text-to-video, image-to-video, reference-image video, first/last-frame video, remix, and extension.
- AI Audio: model-based speech generation.
- Text to Speech: GCP Text-to-Speech service command; voice is selected as a parameter, not as a separate route command.
- AI Music: text-to-music generation with models such as Lyria.
- Video Editing: trim, merge, subtitle, watermark, transcode, and manage task results.
- My Works: view, play, fullscreen preview, download, publish, or delete generated assets.
API Basics
Open the API Access page to view available models, parameters, and examples for the current account.
Base URL: https://media.d2capi.com
Authorization: Bearer sk-d2capi-your-keyImage API
| Capability | Route | Main Parameters |
|---|---|---|
| Image generation | POST /v1/images/generations | model, prompt, sample_count, aspect_ratio, person_generation, safety_setting, mime_type, seed |
Video API
The AI Video page only shows real creation capability commands. Vertical video is produced with aspect_ratio=9:16; target quality is selected with the resolution parameter. They are parameters, not separate capability commands.
| Command | API Route | Main Parameters | Notes |
|---|---|---|---|
video.generate | POST /v1/videos/generations | model, prompt, duration_seconds, aspect_ratio, resolution, generate_audio | Text-to-video |
video.image_to_video | POST /v1/videos/generations | model, prompt, images, duration_seconds, aspect_ratio, resolution | Image-to-video |
video.reference | POST /v1/videos/generations | model, prompt, images, duration_seconds=8 | Reference-image video |
video.first_last_frame | POST /v1/videos/generations | model, prompt, images | First/last-frame video |
video.remix | POST /v1/videos/edits | model, prompt, video or video_id, resolution | Remix an existing video |
video.extend | POST /v1/videos/extend | model, video or video_id, duration_seconds=7 | Extend an existing video |
Common parameter constraints:
| Parameter | Current Values | Notes |
|---|---|---|
aspect_ratio | 16:9, 9:16 | Landscape or vertical video |
resolution | 720p, 1080p, 4k | Filtered by model and route constraints |
duration_seconds | 4, 6, 8; extension uses 7 | Some models or capabilities may be stricter |
Audio and Music API
| Capability | Route | Main Parameters | Notes |
|---|---|---|---|
| AI speech generation | POST /v1/audio/speech | model, input, style, instructions, audio_encoding | Model-based TTS such as gemini-2.5-flash-tts |
| TTS service | POST /v1/audio/speech | input, language, voice, speaking_rate, pitch | GCP Text-to-Speech service command |
| AI music generation | POST /v1/music/generations | model, prompt, sample_count, seed, negative_prompt | Text-to-music models such as lyria-002 |
google-tts-long and google-transcoder are GCP API service commands, not large model entries. Voice selection is loaded as a parameter list and is no longer exposed as a separate "list voices" creation command.
Models and Billing
Daily free allowance
It separately covers 1 image, audio, music, and text-to-speech call per category.
The allowance resets by account each calendar day. Covered calls are labeled as daily free allowance usage.
Each account receives 1000 free text tokens per day; usage accumulates by actual tokens rather than request count.
Each account also receives one free image generation, one free AI-audio generation, and one free music generation per day. GCP speech synthesis and transcription are paid service APIs and do not use the free audio allowance.
Calls beyond the allowance use production catalog prices. Every non-free call records its deducted quota and charge; charges below CNY 0.01 retain four decimal places.
Studio API models: API Models
Studio billing: Billing Guide
