curl -X POST https://api.runupai.com/submit
-H "Content-Type: application/json"
-d '{
"task": "text_to_image",
"model":"sdxl",
"prompt": "cosmos, (galaxy:1.4), (columns on the two side of the road, illuminated road),
(illuminated columns:1.4), reflection, ray tracing, in the space, 1girl, solo,
1girl runs towards the galactic spiral, long black hair, back, astronaut suit,
realistic anime art style, (3-point perspective:1.4), masterpiece, best quality",
"step": 24,
"seed": 1234566
}'
import requests
response = requests.post(
"https://api.runupai.com/submit",
json={
"task": "text_to_image",
"model": "sdxl",
"prompt": "cosmos, (galaxy:1.4), (columns on the two side of the road, illuminated road),(illuminated columns:1.4), reflection, ray tracing, in the space, 1girl, solo,1girl runs towards the galactic spiral, long black hair, back, astronaut suit,realistic anime art style, (3-point perspective:1.4), masterpiece, best quality",
"step": 24,
"seed": 1234566
}
)
print(response.json())
fetch("https://api.runupai.com/submit", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
task: "text_to_image",
model: "sdxl",
prompt: "cosmos, (galaxy:1.4), (columns on the two side of the road, illuminated road),(illuminated columns:1.4), reflection, ray tracing, in the space, 1girl, solo,1girl runs towards the galactic spiral, long black hair, back, astronaut suit,realistic anime art style, (3-point perspective:1.4), masterpiece, best quality",
step: 24,
seed: 1234566
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
func main() {
url := "https://api.runupai.com/submit"
payload := map[string]interface{}{
"task": "text_to_image",
"model": "sdxl",
"prompt": "cosmos, (galaxy:1.4), (columns on the two side of the road, illuminated road),(illuminated columns:1.4), reflection, ray tracing, in the space, 1girl, solo,1girl runs towards the galactic spiral, long black hair, back, astronaut suit,realistic anime art style, (3-point perspective:1.4), masterpiece, best quality",
"step": 24,
"seed": 1234566,
}
jsonData, err := json.Marshal(payload)
if err != nil {
fmt.Println(err)
return
}
req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
if err != nil {
fmt.Println(err)
return
}
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Println(result)
}
Our Features
Discover the powerful features that make RunupAI the best choice for your AI needs.
Access to Latest Models
Stay ahead with access to the latest and most advanced AI models.
Flexible Payments
Conveniently pay using various methods including credit cards and cryptocurrencies.Various ways to pay.
Pay for API Requests
Only pay for the API requests you make, not for idle hardware.
Available Models
Explore our diverse range of AI models designed to cater to various image generation needs. From high-resolution outputs to anime-themed creations, find the perfect model for your project.
Flux Pro
(10 credits/image)
State-of-the-art image generation with top of the line prompt following, visual quality, image detail and output diversity.
Flux Dev
(5 credits/image)
A 12 billion parameter rectified flow transformer capable of generating images from text descriptions.
Flux Schnell
(1 credit/image)
The fastest image generation model tailored for local development and personal use.
Flux 1.1 Pro
(10 credits/image)
Faster, better FLUX Pro. Text-to-image model with excellent image quality, prompt adherence, and output diversity.
Stable Diffusion XL
(2 credits/image)
Faster, better FLUX Pro. Text-to-image model with excellent image quality, prompt adherence, and output diversity.
A text-to-image model with greatly improved performance in image quality, typography, complex prompt understanding, and resource-efficiency.
Stable Diffusion 3.5 Large
(15 credits/image)
A text-to-image model that generates high-resolution images with fine details. It supports various artistic styles and produces diverse outputs from the same prompt, thanks to Query-Key Normalization.