Posts

Асинхронная генерация видео: надёжный polling задач Seedance через API

Асинхронная генерация видео требует иной инженерной дисциплины, чем обычный запрос «получил ответ — показал пользователю». Заявка создаёт задачу, результат появляется позже, а клиенту нужны предсказуемые статусы, понятные ошибки и безопасная обработка URL готового файла. В этой статье разберём, как построить такой контур для Seedance через единый API Ace Data Cloud. В качестве отправной точки пригодятся русская версия платформы , раздел Applications для работы с ключом приложения и документация API . Идея проста: приложение отправляет задачу на генерацию, сохраняет её идентификатор и затем опрашивает отдельный endpoint до терминального состояния. Это позволяет не держать HTTP-соединение открытым и не путать принятие заявки с готовностью ролика. Какие данные нужно хранить рядом с задачей После старта генерации сохраните идентификатор задачи в собственной базе вместе с пользователем, исходными параметрами, временем создания и вашим внутренним идентификатором операции. Не ограничива...

How to Build an Image Editing Workflow with OpenAI Images Edits API

Image
If your app accepts user images, sooner or later you need more than one-off prompting: you need a repeatable way to edit an existing image, preserve the parts that matter, and return a result your pipeline can store or show immediately. What you can do The OpenAI Images Edits API on Ace Data Cloud gives you a single editing endpoint for several image-editing models. The same interface supports gpt-image-1 , gpt-image-2 , and the nano-banana family: nano-banana , nano-banana-2-lite , nano-banana-2 , and nano-banana-pro . In practical terms, this lets you build workflows such as: turning a light infographic into a dark-mode version while keeping the layout intact; restyling a product or interior photo without losing the object arrangement; combining multiple reference images into a composed output; editing server-side images directly from URLs instead of downloading and re-uploading files. The endpoint used in the document examples is POST https://api.acedata.cl...

A Practical Guide to Aggregating API Usage in Ace Data Cloud

Image
When an API-backed feature becomes part of a real product, the question quickly changes from “did the call work?” to “what is using quota, when, and why?” Raw request logs are useful for debugging a single request, but they are a noisy way to understand daily trends, service-level spend, or which credential is responsible for most of the activity. The AceDataCloud Platform Management API includes a usage aggregation endpoint for exactly this kind of operational view. Instead of querying individual usage records and summing them yourself, you can ask the platform for grouped call counts, total consumption, successes, and failures over a time range. What you can do The endpoint is useful when you want to build a small internal dashboard, generate a monthly usage report, or investigate whether one application, service, API, or credential is driving most of your consumption. Plot call volume and consumption over time with group_by=time . Rank services by usage with group_by...

How to Build Audio Transcription into Your App with Ace Data Cloud

Image
If your product accepts meetings, voice notes, podcasts, support calls, or short video clips, transcription is often the first useful step: turn audio into text, then index it, summarize it, subtitle it, or trigger downstream automation. What you can do Ace Data Cloud exposes an OpenAI-compatible speech recognition endpoint at POST https://api.acedata.cloud/v1/audio/transcriptions , with an alias at POST /openai/audio/transcriptions . The request uses multipart/form-data and authenticates with Authorization: Bearer {token} . You can return a normal JSON transcript, plain text, subtitles, verbose JSON with timestamps, or streaming text events depending on the model and parameters you choose. Upload an audio file with file . Choose whisper-1 or gpt-transcribe with model . Guide recognition with language , prompt , languages[] , or keywords[] where supported. Ask for json , text , srt , verbose_json , or vtt through response_format , depending on the model. Use stream=true with gpt-...

A Practical Guide to Adding Remote MCP Tools to Claude Code

Image
When you are already using Claude Code for everyday engineering work, the next bottleneck is often not reasoning—it is context switching. You ask the agent to update a README, then leave the terminal to search the web, generate a cover image, make demo assets, or shorten links for release notes. Model Context Protocol (MCP) is a practical way to keep those actions inside the coding workflow. This guide walks through one concrete setup: connecting Ace Data Cloud remote MCP servers to Claude Code using HTTP transport and an authorization header. The goal is not to install another dashboard. It is to make your terminal agent able to call focused tools—search, image generation, music generation, video generation, and link shortening—while it is already helping you build. What you can do The source documentation describes managed remote MCP servers for several tool categories. The useful mental model is simple: each server is a remote tool surface, and Claude Code can call it when your ...

How to Build an Image Editing Workflow with the Nano Banana Images API

Image
If you have ever tried to add AI image generation to a product, the first hard part is not the prompt—it is building a reliable workflow around inputs, outputs, retries, and traceability. The Nano Banana Images API is useful when you want one endpoint that can either create an image from text or edit one or more existing images. In this guide, we will build around the documented POST /nano-banana/images endpoint, keep the request shape small, and design the integration so it can work in both synchronous and callback-based flows. What you can do The API supports two actions through the same endpoint: generate : create images from a text prompt . edit : edit or combine provided images from image_urls using a text prompt . That means a builder can keep one integration path for several product features: prompt-to-image creation, product mockup editing, combining reference images, or taking an existing asset and transforming it into a more polished visual. The documented ba...

How to Add Ace Data Cloud MCP Servers to Claude Code

Image
If you already use Claude Code for everyday programming, the next friction point is usually not code generation itself. It is everything around the code: creating a quick product image, finding current references, making short release assets, or preparing media while you are still inside the terminal. The Ace Data Cloud Claude Code MCP guide describes a practical way to connect managed remote MCP servers so those tasks can happen without leaving your coding flow. What you can do The source guide focuses on connecting Ace Data Cloud remote MCP servers to Claude Code through HTTP MCP endpoints. Once configured, Claude Code can call tools for several adjacent builder tasks while you continue working in the terminal or IDE. Use music tooling through Suno for text-to-song, lyrics, covers, continuation, vocal separation, and Persona workflows. Use image tooling through Midjourney , Flux , Seedream , and NanoBanana for image generation, image mixing, editing, product-backgroun...