AI Tools
curl --request POST \
--url https://api.example.com/api/v2/generateimport requests
url = "https://api.example.com/api/v2/generate"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/v2/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v2/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v2/generate"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v2/generate")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyGenerations (results)
AI Tools
Upscale, Face Swap, Remove BG, Style Transfer, Colorize, InPaint, OCR — all on Starter tier
POST
/
api
/
v2
/
generate
AI Tools
curl --request POST \
--url https://api.example.com/api/v2/generateimport requests
url = "https://api.example.com/api/v2/generate"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/v2/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v2/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v2/generate"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v2/generate")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyAll AI tools are available on the Starter tier (no subscription required). Cost: 1–3 tokens.
Available Tools
| Slug | Name | Tokens | Description |
|---|---|---|---|
upscale | Upscale ESRGAN | 1 | 2×/4× image upscaling |
face-swap | Face Swap | 1 | Swap faces between two images |
remove-bg | Remove BG | 1 | Remove background from any image |
style-transfer | Style Transfer | 1 | Apply artistic style to an image |
colorize | Colorize | 1 | Colorize black-and-white photos |
inpaint | InPaint Edit | 3 | Edit a selected region by repainting |
text-ocr | Text OCR | 1 | Extract text from images |
Request Format
Tools use the samePOST /api/v2/generate endpoint. Pass the tool slug as model and the image URL in params:
curl -X POST https://elumenta.ru/api/v2/generate \
-H "Authorization: Bearer nb_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "remove-bg",
"prompt": "remove background",
"params": {
"image_url": "https://example.com/photo.jpg"
}
}'
Code Examples
import requests
res = requests.post(
"https://elumenta.ru/api/v2/generate",
headers={"Authorization": "Bearer nb_YOUR_API_KEY"},
json={
"model": "remove-bg",
"prompt": "remove background",
"params": {"image_url": "https://example.com/portrait.jpg"}
}
)
print(res.json()["result_url"])
res = requests.post(
"https://elumenta.ru/api/v2/generate",
headers={"Authorization": "Bearer nb_YOUR_API_KEY"},
json={
"model": "upscale",
"prompt": "upscale",
"params": {
"image_url": "https://example.com/photo.jpg",
"scale": 4
}
}
)
print(res.json()["result_url"])
res = requests.post(
"https://elumenta.ru/api/v2/generate",
headers={"Authorization": "Bearer nb_YOUR_API_KEY"},
json={
"model": "face-swap",
"prompt": "face swap",
"params": {
"source_image_url": "https://example.com/source_face.jpg",
"target_image_url": "https://example.com/target.jpg"
}
}
)
print(res.json()["result_url"])
res = requests.post(
"https://elumenta.ru/api/v2/generate",
headers={"Authorization": "Bearer nb_YOUR_API_KEY"},
json={
"model": "text-ocr",
"prompt": "extract text",
"params": {"image_url": "https://example.com/document.jpg"}
}
)
print(res.json()["result_text"])
Response
{
"id": 18530,
"status": "completed",
"model_slug": "remove-bg",
"result_url": "https://storage.elumenta.ru/generations/18530.png",
"tokens_spent": 1,
"processing_ms": 2140
}
All tools process images immediately (synchronous). No polling needed —
status will always be completed in the initial response.⌘I

