Posts

Showing posts with the label api

How to Use NanoBanana MCP in OpenCode for Multi-Image Editing

Image
Multi-image editing becomes much more useful when it can stay inside the same terminal workflow where you are already writing docs, adjusting product copy, or preparing release assets. What you can do The NanoBanana MCP server is designed for image generation and image editing workflows inside OpenCode. The documented strengths are practical rather than abstract: product background replacement, virtual try-on, subject-consistent edits for people or objects, and editing one image with another image as a reference. In an OpenCode session, that means you can ask for tasks such as: placing a product image into a scene while keeping lighting consistent; changing a model image to wear a referenced garment while preserving face and pose; generating a small illustration for a 404 page or documentation page; using several source images as references without leaving the terminal. How it works OpenCode reads MCP servers from an opencode.json file. Ace Data Cloud exposes Nan...

How to Add NanoBanana Image Editing to Claude Code with MCP

Image
When you are already working in a terminal, switching to a browser just to generate or edit a product image breaks flow. A practical alternative is to connect an image MCP server to Claude Code, then ask for image work in the same place where you read code, edit files, and run commands. This guide walks through the NanoBanana MCP setup for Claude Code using the public Ace Data Cloud documentation. The goal is not to replace your design process; it is to give your coding agent a callable image tool for common builder tasks: README visuals, landing page illustrations, product mockups, and multi-image composition. What you can do NanoBanana is useful when the task needs image understanding, not only fresh image generation. The documentation describes it as a tool that can understand relationships across images—for example, placing an item from one image into the scene of another and adjusting angle and lighting so the result looks natural. In Claude Code, the NanoBanana MCP server ex...

How to Generate Veo Videos from Claude Desktop, VS Code, or Cursor with MCP

Image
Video generation becomes much easier to prototype when it sits inside the tools where builders already write prompts, inspect assets, and iterate on ideas. The Veo MCP Server from Ace Data Cloud lets an MCP-capable client such as Claude Desktop, VS Code, or Cursor call Veo video tools through a standard interface, so you can move from a written brief to a generated video task without leaving your working environment. What you can do The documented Veo MCP setup exposes a small, practical tool surface for video workflows: veo_text_to_video for generating video from text prompts. veo_image_to_video for generating video based on images. veo_get_1080p for upgrading an already generated video to 1080p. veo_get_task for checking a single task status. veo_get_tasks_batch for checking multiple task statuses. The same document also describes support for multiple Veo models, including veo3 , veo2 , and veo31-fast-ingredients , plus output options such as 4K, 1080p, GIF...

A Practical Guide to Pay-Per-Call AI APIs with the Ace Data Cloud SDK and X402

Image
If you are building a CLI, backend worker, or agent that calls AI APIs on behalf of different users, API keys are often the awkward part: who owns the balance, who rotates the token, and how do you charge only for one call? The paymentHandler hook in the Ace Data Cloud SDK gives you another path: let the first request receive 402 Payment Required , sign an X402 payment envelope locally, then retry the same API call with a PAYMENT-SIGNATURE header. What you can do The documented flow is useful when you want business code to stay close to a normal SDK call while payment happens per request. In practice, you can: Call client.openai.chat.completions.create(...) without passing an apiToken . Inject a TypeScript or Python paymentHandler that signs the payment challenge after a 402 . Use EVM networks such as base or skale , or use solana where the Solana signer path is supported. Choose preferScheme: 'upto' / prefer_scheme="upto" for metered chat-st...

A Practical Guide to Building Version-Safe Music Workflows with the Suno Studio Projects API

Image
If you have ever tried to turn generated music into an editable product feature, you know the hard part is not only creating audio. The hard part is keeping project state, track edits, replacements, and final exports coordinated without overwriting someone else's work. The Suno Studio Projects API solves that problem with a single project-oriented endpoint. Instead of treating every music generation as a one-off file, you work with a project, retrieve its editable state, save complete versions, add or generate tracks, commit selected candidates, and render the final song when the mix is ready. What you can do The project API is centered on one endpoint: POST /suno/projects Authorization: Bearer YOUR_API_KEY Content-Type: application/json The operation is selected with an action field. The documented actions cover the full lifecycle of a multi-track project: create : create an empty project. retrieve : read the project and its complete editable state . save : save ...

Getting Started with Short Links in Gemini CLI Using ShortURL MCP

Image
Long URLs are awkward in chat, email, release notes, and terminal output. If your day already runs through Gemini CLI, the most practical fix is not another browser tab—it is a small MCP tool that can shorten links directly inside the conversation. This guide walks through connecting the ShortURL MCP server to Gemini CLI, what the configuration means, and how to use it in a repeatable builder workflow. The goal is simple: let the assistant shorten one link or a batch of links while you stay in the terminal. What you can do The ShortURL MCP integration documented by Ace Data Cloud exposes one focused capability: generating short links from long URLs. The documented tool is shorturl_create , described as a tool that shortens long links. That narrow scope is useful. Instead of asking a general-purpose agent to invent a link workflow, you give Gemini CLI a concrete MCP server with a concrete tool. In practice, that means you can ask for tasks such as: Shorten a single produc...

How to Build Image Generation and Editing Workflows with the Nano Banana Images API

Image
Most image workflows start simple—one prompt in, one image out—but real products quickly need more: editing an existing asset, combining multiple references, tracking task IDs, and receiving results without holding a connection open. The Nano Banana Images API is useful when you want both text-to-image generation and image editing behind a single HTTP endpoint. This guide walks through the practical shape of that workflow using only the fields and behavior documented for the API. What you can do The API supports two actions through the same endpoint, POST /nano-banana/images on the base URL https://api.acedata.cloud : action: "generate" creates images from a text prompt . action: "edit" edits one or more existing images supplied through image_urls , guided by a text prompt . The same request shape also gives you production-oriented hooks: count for requesting multiple images, model for choosing the image model, callback_url for asynchronous deliv...

How to Use NanoBanana MCP in Claude Code for Image Editing Workflows

Image
When a development workflow needs visual assets, the slowest part is often not the image model itself—it is leaving the terminal, uploading references, copying outputs back, and trying to keep the result aligned with the project you are already editing. NanoBanana MCP gives Claude Code a terminal-native way to generate images, edit existing images, and compose multiple image inputs through a remote MCP server. The useful part is not that it adds another image tool; it lets a coding agent call that tool while it still has your project context. What you can do The NanoBanana MCP document describes two exposed tools: nanobanana_generate_image for text-to-image generation. nanobanana_edit_image for image editing, including multiple image inputs. That makes it practical for everyday builder tasks: create a page illustration for a 404 screen, remove unwanted text from a screenshot, or combine an object from one image with the environment of another. The document specifically ...

How to Add X402 Pay-Per-Call Payments to the Ace Data Cloud SDK

Image
If you are building a CLI, agent, or developer tool, prepaid API tokens are not always the cleanest fit: sometimes you want the caller to pay for exactly the request they make, without your backend holding their platform token. What you can do The SDK + X402 Payment Hook flow lets an Ace Data Cloud SDK client make a normal SDK call, receive a 402 Payment Required challenge, sign a payment envelope locally, and retry the same request with a PAYMENT-SIGNATURE header. The business code still calls client.openai.chat.completions.create(...) ; the payment path sits underneath the SDK through a paymentHandler . This is useful when you want to build: agent tools that can pay per call from a wallet, CLI utilities where the operator owns the payment key, browser flows where a connected wallet signs the request, backend jobs that should avoid storing an Ace Data Cloud API token. The documented SDK path supports TypeScript through @acedatacloud/sdk and @acedatacloud/x402-c...

How to Generate and Edit Images with the Nano Banana Images API

Image
When you build image features, the hard part is not only asking a model for a picture. It is turning prompts, reference images, callbacks, task IDs, and failures into a workflow your app can trust. This guide shows how to use the Nano Banana Images API from Ace Data Cloud for two practical jobs: generating an image from text and editing existing images with one or more visual references. What you can do The API has one endpoint: POST https://api.acedata.cloud/nano-banana/images The request body uses action . Set it to generate to create an image from a prompt , or edit to transform existing images supplied through image_urls . A successful response includes success , task_id , trace_id , and a data array with returned image_url values. How it works Requests go to https://api.acedata.cloud . Send JSON and include a bearer token in the request header. The documented request headers are accept: application/json and content-type: application/json . The minimum generation requ...

How to Build a Practical Image Editing Workflow with GPT Image 2

Image
When image editing becomes part of a product workflow, the hard part is not generating one nice picture; it is preserving the right parts of an existing image while changing only the pieces your user asked for. This guide walks through a practical workflow for using Ace Data Cloud’s GPT Image 2 / 2.5 image editing API. The goal is to keep the integration boring in the best way: predictable inputs, explicit prompts, clear constraints, and recoverable failures. What you can do The image editing endpoint is designed for turning an existing image into a controlled variation. You can send an image by URL, upload a local file with multipart/form-data , provide up to 16 reference images, or constrain edits with a PNG alpha mask when using the official multipart contract. Change a product color while keeping composition, shadows, and camera angle stable. Replace or restyle a background without asking the model to invent the full scene from scratch. Use a mask so only a transpar...

A Practical Guide to Building Multi-Track Music Workflows with the Suno Studio Projects API

Image
If you are building with AI-generated music, the hard part is rarely a single audio file. The harder workflow is keeping track of project state, adding reference material, replacing a section without losing the rest of the arrangement, and exporting the final mix when the version is ready. What you can do The Suno Studio Projects API gives builders one project-oriented endpoint for multi-track music work: POST /suno/projects Authorization: Bearer YOUR_API_KEY Content-Type: application/json Instead of using a different route for every operation, you send an action field in the JSON body. The documented actions include create , retrieve , save , upload , add_track , generate_track , replace_section , commit_candidate , remove_track , and render . This makes the API useful for builder workflows such as: creating an empty Studio project and storing its project id ; retrieving the editable state before making changes; saving the complete project state with the current ver...

Getting Started with Seedance Video Generation: A Practical API Guide

Image
When you add generated video to an application, the practical challenge is shaping prompts, reference media, output settings, async jobs, and clear failure cases. This guide shows how to start with Seedance video generation using the documented endpoint POST https://api.acedata.cloud/seedance/videos . What you can do Generate video from content[].type = text . Use image_url with role values first_frame and last_frame . Use Seedance 2.0 reference_image , reference_audio , and reference_video . Use Seedance 2.5 omni_reference_task_type for reference , edit , extend , or auto . How it works Send JSON to https://api.acedata.cloud/seedance/videos with accept: application/json , content-type: application/json , and an authorization header. Responses can include success , task_id , trace_id , and data.video_url . A minimal text-to-video call {"content":[{"type":"text","text":"A white ceramic coffee mug on a glossy marble countertop with soft m...

How to Build a Practical Image Editing Workflow with GPT Image 2

Image
Image editing APIs are most useful when they let you make a small, controlled change without rebuilding the whole image pipeline from scratch. If you already have a product photo, a design mockup, or a visual asset, the practical question is not “can a model generate an image?” but “can I preserve what matters and edit only what needs to change?” This guide walks through a builder-oriented workflow for the GPT Image 2 / 2.5 image editing API on Ace Data Cloud: URL-based edits, local image uploads, masks for constrained edits, and asynchronous callbacks for longer-running jobs. What you can do The image editing endpoint is designed for modifying existing images with text instructions. Depending on the request shape, you can: Edit an image from a URL using a JSON request. Upload a local image with multipart/form-data . Pass one or more reference images through the image field. Use a PNG mask with an Alpha channel for local editing on official-channel models. Choose ...