Skip to content

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.

text
Base URL: https://media.d2capi.com
Authorization: Bearer sk-d2capi-your-key

Image API

CapabilityRouteMain Parameters
Image generationPOST /v1/images/generationsmodel, 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.

CommandAPI RouteMain ParametersNotes
video.generatePOST /v1/videos/generationsmodel, prompt, duration_seconds, aspect_ratio, resolution, generate_audioText-to-video
video.image_to_videoPOST /v1/videos/generationsmodel, prompt, images, duration_seconds, aspect_ratio, resolutionImage-to-video
video.referencePOST /v1/videos/generationsmodel, prompt, images, duration_seconds=8Reference-image video
video.first_last_framePOST /v1/videos/generationsmodel, prompt, imagesFirst/last-frame video
video.remixPOST /v1/videos/editsmodel, prompt, video or video_id, resolutionRemix an existing video
video.extendPOST /v1/videos/extendmodel, video or video_id, duration_seconds=7Extend an existing video

Common parameter constraints:

ParameterCurrent ValuesNotes
aspect_ratio16:9, 9:16Landscape or vertical video
resolution720p, 1080p, 4kFiltered by model and route constraints
duration_seconds4, 6, 8; extension uses 7Some models or capabilities may be stricter

Audio and Music API

CapabilityRouteMain ParametersNotes
AI speech generationPOST /v1/audio/speechmodel, input, style, instructions, audio_encodingModel-based TTS such as gemini-2.5-flash-tts
TTS servicePOST /v1/audio/speechinput, language, voice, speaking_rate, pitchGCP Text-to-Speech service command
AI music generationPOST /v1/music/generationsmodel, prompt, sample_count, seed, negative_promptText-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

Support QQ: 6669955