POST
javascript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 const axios = require('axios'); const api_key = "YOUR API KEY"; const url = "https://api.segmind.com/workflows/66cecd958aeef98f887211f6-v1"; const data = { text_prompt: "the user input string" }; axios.post(url, data, { headers: { 'x-api-key': api_key, 'Content-Type': 'application/json' } }).then((response) => { console.log(response.data); });
Response
application/json
1 2 3 4 5 { "poll_url": "<base_url>/requests/<some_request_id>", "request_id": "some_request_id", "status": "QUEUED" }

You can poll the above link to get the status and output of your request.

Response
application/json
1 2 3 { "output_video": "any user input string" }

Attributes


text_promptstr*

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

AI Anime Animation Using Flux and Tooncrafter Models

This workflow helps you in creating delightful anime animations, a technique that was previously an intricate process requiring expert animators.

The Flux model, in conjunction with the Tooncrafter model, is a sophisticated tool designed to generate anime images and animate them seamlessly.

Workflow Overview

The AI anime animation workflow employs a streamlined process. The illustrated workflow defines the sequence of processing stages that an image undergoes to achieve the desired animation.

*Stage 1: The process starts by inputting an image of the anime character to be animated. The photo is generated using the Flux model node, which then proceeds to the next stage.

*Stage 2: The Flux model can comprehensively generate various artistic features and expressions within the character. You can change the prompt to get very different characters and expressions

*Stage 3: Once the expressive frames are generated, the Tooncrafter model leverages its analysis to animate the sequence while maintaining artistic integrity.

The AI combines the frames into a smooth animation, adding subtle transitions and ensuring fluid motion. The final output, a beautifully crafted anime animation, is generated and can be exported for personal projects, client presentations, or artistic displays.

Using the Template

*Generate your anime character image with the given prompt

  • Hit the run button to generate outputs

*Optionally, you can also tweak the text prompt to change the outputs to your liking.