Mage API · โมเดลภาพ
Stable Diffusion v3.5 Large API
Stable Diffusion ที่เข้าใจคำสั่งดีที่สุด
POST https://api.mage.space/v1/stable_diffusion_v35_large/generateดูแบบเร็ว ๆ
Stable Diffusion v3.5 Large API รัน Stable Diffusion v3.5 Large ผ่าน Mage ที่ POST https://api.mage.space/v1/stable_diffusion_v35_large/generate คำขอที่ใช้ค่าเริ่มต้นราคา 10 Gems (ประมาณ $0.01) ไม่ต้องสมัครสมาชิก Stable Diffusion v3.5 Large ไม่รองรับการกล่าวถึงด้วย @handle
- รูปภาพผลลัพธ์
- 1รุ่น
- 10Gems ต่อภาพ (ค่าเริ่มต้น)
- $0.01ประมาณ (USD)
ภาพรวม
Stable Diffusion v3.5 Large API ทำอะไรได้บ้าง
Stable Diffusion ที่ทำตามพรอมต์แบบละเอียดได้แม่นยำที่สุด สร้างจากข้อความหรือจากภาพอินพุตหนึ่งภาพ ในราคาประหยัด
Stable Diffusion 3.5 Large Stable Diffusion ที่ทำตามพรอมต์แบบละเอียดได้แม่นยำที่สุด พร้อมตัวเลือกใส่ภาพอินพุต
รับ image เป็นอินพุต
เริ่มต้นอย่างรวดเร็ว
เรียกใช้ Stable Diffusion v3.5 Large API
ตั้งค่า MAGE_API_KEY ส่งคำขอไปที่ /stable_diffusion_v35_large/generate แล้วโพลล์ status_url จนกว่าคำขอจะเสร็จสมบูรณ์
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/stable_diffusion_v35_large/generate' \
--header "Authorization: Bearer $MAGE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"prompt": "Editorial portrait in soft daylight, 35mm film look",
"aspect_ratio": "4:5",
"model_id": "sd-3-5-large"
}' | jq -r '.status_url')
# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('stable_diffusion_v35_large', {
prompt: 'Editorial portrait in soft daylight, 35mm film look',
aspect_ratio: '4:5',
model_id: 'sd-3-5-large',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("stable_diffusion_v35_large", {
"prompt": "Editorial portrait in soft daylight, 35mm film look",
"aspect_ratio": "4:5",
"model_id": "sd-3-5-large",
})
print(request["result"]["url"])โมเดล
ค่า model_id ของ Stable Diffusion v3.5 Large
ส่ง model_id เพื่อเลือกรุ่น หากไม่ระบุ ระบบจะใช้รุ่นเริ่มต้น
| model_id | ชื่อ | ค่าเริ่มต้น |
|---|---|---|
| sd-3-5-large | Stable Diffusion v3.5 Large | ใช่ |
ตัวเลือก
พารามิเตอร์ของ Stable Diffusion v3.5 Large
ค่าที่ใช้ได้รวมทุกรุ่น บางรุ่นอาจมีตัวเลือกน้อยกว่า ดูตัวเลือกของแต่ละรุ่นได้ในเอกสาร
| ฟิลด์ | ค่า |
|---|---|
| aspect_ratio | 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21 |
อินพุต
อินพุตสื่อที่ Stable Diffusion v3.5 Large รองรับ
ส่งแต่ละรายการเป็น https URL, data URL หรืออัปโหลดไฟล์ขนาดไม่เกิน 100 MB
| ฟิลด์ | บทบาท |
|---|---|
| image | ภาพอ้างอิง |
โมเดลภาพอื่นๆ
API สร้างภาพอื่นๆ บน Mage
Stable Diffusion XL API
SDXL ที่ปรับแต่งมาให้ได้ภาพสมจริงเหมือนภาพถ่าย
Z-Image API
โมเดลภาพที่เร็วที่สุดบน Mage
Anima API
สร้างมาเพื่ออนิเมะโดยเฉพาะ
Chroma API
โอเพนเวทส์ สร้างบน Flux
Flux 2 API
รองรับพรอมต์ยาวและการแก้ไขด้วยภาพอ้างอิงหลายภาพ
GPT Image 2 API
พรอมต์แม่นยำ ข้อความอ่านชัด
คำถามที่พบบ่อย
คำถามที่พบบ่อย
Stable Diffusion v3.5 Large API คิดราคาเท่าไร
Endpoint ของ Stable Diffusion v3.5 Large API คืออะไร
เรียกใช้โมเดล Stable Diffusion v3.5 Large ตัวไหนได้บ้าง
Stable Diffusion v3.5 Large รองรับภาพอ้างอิงหรือตัวละครไหม
ใช้ Stable Diffusion v3.5 Large จาก Claude หรือ ChatGPT ได้ไหม
ผลลัพธ์จาก Stable Diffusion v3.5 Large ถูกเก็บไว้นานแค่ไหน
เริ่มสร้างสรรค์ด้วย Mage
หนึ่งบัญชี หนึ่งยอด Gems ใช้ได้ทุกโมเดล จ่ายเฉพาะที่สร้างจริง