Rozdzielczość wyjściowa
Obsługuje 1k, 2k, 4k zgodnie z opublikowanym schematem endpointu.
Photorealistic 1K-4K batches; up to 6 images per prompt
curl -X POST https://runapi.ai/api/v1/seedream/text_to_image \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-v4-text-to-image",
"prompt": "Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K."
}'
import { SeedreamClient } from "@runapi.ai/seedream";
const client = new SeedreamClient();
const result = await client.textToImage.run({
model: "seedream-v4-text-to-image",
prompt: "Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/seedream/text_to_image",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"seedream-v4-text-to-image","prompt":"Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/seedream/text_to_image");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seedream-v4-text-to-image',
'prompt' => 'Create a social media graphic for a coffee shop sale with the text \'50% OFF\' in bold, warm tones, 4K.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.textToImage().run({"model":"seedream-v4-text-to-image","prompt":"Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K."});
task.waitForResult();
require "runapi/seedream"
client = RunApi::Seedream::Client.new
result = client.text_to_image.run(
model: "seedream-v4-text-to-image",
prompt: "Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.textToImage.Run({"model":"seedream-v4-text-to-image","prompt":"Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model seedream-v4-text-to-image \
--endpoint text_to_image \
--wait
9 dostępnych wariantów
Wybierz dowolny model i generuj w kilka sekund.
Wybierz dowolny model i generuj w kilka sekund.
| Dostawca | Bytedance |
| ID modelu | seedream-v4-text-to-image |
| Modalność | Image |
| Typy zadań | Asynchronous |
| Endpoint API | /api/v1/seedream/text_to_image |
| Jednostka rozliczeniowa | call |
| Parametry wejściowe | aspect_ratio, output_count, output_resolution |
| Maksymalna rozdzielczość | 1k, 2k, 4k |
| Proporcje obrazu | 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, 21:9 |
| Status katalogu | Operacyjny |
Zarejestruj się bezpłatnie i utwórz klucz API dla seedream-v4-text-to-image w panelu.
Wyślij żądanie POST do /api/v1/seedream/text_to_image z identyfikatorem modelu seedream-v4-text-to-image i parametrami.
Odpytywać zadanie lub skorzystaj z callbacku, aby pobrać ukończony wynik seedream-v4-text-to-image.
Obsługuje 1k, 2k, 4k zgodnie z opublikowanym schematem endpointu.
Skonfiguruj 3 udokumentowanych parametrów, w tym aspect_ratio, output_count, output_resolution.
Udostępnia 1 publiczny(-e) endpoint(-y): text_to_image.
Rozliczane według call bez wymogu subskrypcji.
aspect_ratioBrak dostępnego opisu. (1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, 21:9)
output_countBrak dostępnego opisu. (1, 2, 3, 4, 5, 6)
output_resolutionBrak dostępnego opisu. (1k, 2k, 4k)
Automatycznie generuj lifestyle’owe zdjęcia produktów do katalogów e-commerce, które nie mają sesji studyjnych.
Szybko twórz koncepcje środowisk i postaci, zanim przejdziesz do finalnej grafiki.
Generuj unikalne okładki i ilustracje do wpisów blogowych oraz artykułów na dużą skalę.
Przekaż identyfikator modelu wyświetlony w quickstarcie.
Limity na klucz skalują się wraz z poziomem wykorzystania. Aktualne limity znajdziesz na stronie cennika.
Tak — wariant to flaga. Zmieniasz go, aktualizując parametr model.
Tam, gdzie streaming jest dostępny, RunAPI streamuje end-to-end.
Otwórz issue w publicznym repo na GitHubie albo napisz do supportu.
Pomożemy w konfiguracji dla firm, integracjach i kwestiach technicznych.
Skontaktuj się