POST/v1/sd1.5-revanimated
1const axios = require('axios');
2
3
4const api_key = "YOUR API-KEY";
5const url = "https://api.segmind.com/v1/sd1.5-revanimated";
6
7const data = {
8  "prompt": "advanced aircraft, gundam, dark black robot, spaceship, long, giant guns, futuristic design, scifi, in space, supernova, stars, planets, (8k, RAW photo, best quality, ultra high res, photorealistic, masterpiece, ultra-detailed, Unreal Engine),best quality, warrior,((cinematic look)), insane details, advanced weapon, fight, battle, epic, power, combat, shoot, shooting, missiles, bombs, explosions, rockets, jetpack, defence, attacking,wide angle",
9  "negative_prompt": "boring, poorly drawn, bad artist, (worst quality:1.4), simple background, uninspired, (bad quality:1.4), monochrome, low background contrast, background noise, duplicate, crowded, (nipples:1.2), big breasts",
10  "scheduler": "ddim",
11  "num_inference_steps": 25,
12  "guidance_scale": 9,
13  "samples": 1,
14  "seed": 3426017487234,
15  "img_width": 512,
16  "img_height": 768,
17  "base64": false
18};
19
20(async function() {
21    try {
22        const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
23        console.log(response.data);
24    } catch (error) {
25        console.error('Error:', error.response.data);
26    }
27})();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing
Expand

Attributes


promptstr *

Prompt to render


negative_promptstr ( default: None )

Prompts to exclude, eg. 'bad anatomy, bad hands, missing fingers'


schedulerenum:str ( default: UniPC )

Type of scheduler.

Allowed values:


num_inference_stepsint ( default: 20 ) Affects Pricing

Number of denoising steps.

min : 20,

min : 100


guidance_scalefloat ( default: 7.5 )

Scale for classifier-free guidance

min : 0.1,

min : 25


samplesint ( default: 1 ) Affects Pricing

Number of samples to generate.

min : 1,

min : 4


seedint ( default: -1 )

Seed for image generation.


img_widthenum:int ( default: 512 ) Affects Pricing

Width of the image.

Allowed values:


img_heightenum:int ( default: 512 ) Affects Pricing

Height of the Image

Allowed values:


base64boolean ( default: 1 )

Base64 encoding of the output image.

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.

ReV Animated

ReV Animated is an innovative model that brings a new dimension to image generation. This model is a product of a checkpoint merge, combining the capabilities of multiple models to create unique and dynamic outputs. With a focus on 2.5D-like image generations, ReV Animated can produce a variety of styles including Fantasy, Anime, Semi-Realistic, and Landscape. The model's understanding of prompts and body poses is impressive, allowing it to generate images of characters holding weapons, becoming giantesses, and exhibiting a range of facial expressions. Designed to work best on a resolution of 512x512, ReV Animated is a LoRa friendly model that brings your prompts to life.

From a technical perspective, ReV Animated is based on the Stable Diffusion 1.5 base model. The model's architecture gives more weight to words at the beginning of your prompt, meaning the order of your prompt matters. The optimal prompt order is content type, description, style, and then composition. For those seeking anime-2.5D type images, the model responds well to prompts beginning with phrases like "((best quality))", "((masterpiece))", or "(detailed)". This model excels at creating PORTRAITS, making it a powerful tool for artists and creators.

Its ability to understand and interpret prompts allows for a high degree of customization in the generated images. The model's proficiency in creating a variety of styles, from fantasy to semi-realistic, makes it versatile and adaptable. Furthermore, its understanding of body poses and facial expressions adds a level of detail and realism to the images it generates.

ReV Animated use cases

  1. Character Design: Artists can use ReV Animated to generate unique character designs for their projects.

  2. Concept Art: Game developers and filmmakers can use the model to create concept art for their projects.

  3. Illustration: Illustrators can use ReV Animated to generate detailed and dynamic illustrations.

  4. Animation: Animators can use the model to create frames for their animations.

ReV Animated license

The license for the ReV Animated model, known as the "CreativeML Open RAIL-M" license, is designed to promote both open and responsible use of the model. You may add your own copyright statement to your modifications and provide additional or different license terms for your modifications. You are accountable for the output you generate using the model, and no use of the output can contravene any provision as stated in the license.