Neidio i'r cynnwys

Pony V7

Integreiddio

ID y model pony-v7
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/pony-v7?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Y cais hwn: $0.03 30 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
Open model Testun i Ddelwedd #diffusion#style

Model testun-i-ddelwedd wedi'i fireinio gyda dewis ffynhonnell sŵn a hyd at 2 ddelwedd fesul cais

Open model · Delwedd

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol

Anogiad a ddefnyddir fel sail ar gyfer cynhyrchu delweddau.

image_size rhagosodedig square_hd

Dimensiynau'r ddelwedd a gynhyrchir.

num_images rhagosodedig 1

Cyfrif y delweddau i'w cynhyrchu.

Uwch noise_source · output_format · guidance_scale · num_inference_steps · seed · enable_safety_checker
noise_source rhagosodedig gpu

Dewiswch ble caiff sŵn cynhyrchu delwedd ei gyfrifo: mae 'cpu' yn defnyddio'r CPU, tra bod 'gpu' yn defnyddio'r GPU.

output_format rhagosodedig jpeg

Fformat ffeil y ddelwedd sy'n deillio.

rhagosodedig 3.5

Graddfa ar gyfer arweiniad heb ddosbarthwr.

rhagosodedig 40

Cyfrif camau casglu i'w rhedeg.

Gwerth hedyn a ddefnyddir wrth gynhyrchu delweddau.

POST /run/pony-v7?wait=20 dyfynbris → $0.03
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/pony-v7?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Pony V7

Yn cynhyrchu delweddau o `prompt` gofynnol. Mae `num_images` wedi'i gyfyngu i 1 neu 2, mae `num_inference_steps` yn amrywio o 20 i 50 (rhagosodedig 40), ac mae `guidance_scale` yn amrywio o 0 i 20. Gallwch ddewis `noise_source` fel gpu neu cpu, dewis un o chwe rhagosodiad `image_size`, gosod `seed`, ac allbwn jpeg neu png.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
promptgofynnol
Mathstring
Anogiad a ddefnyddir fel sail ar gyfer cynhyrchu delweddau.
image_sizedewisol
Mathobject
Rhagosodedigsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Dimensiynau'r ddelwedd a gynhyrchir.
num_imagesdewisol num_outputs
Mathinteger
Rhagosodedig1
1 – 2
Cyfrif y delweddau i'w cynhyrchu.
seeddewisol
Mathinteger | null
Gwerth hedyn a ddefnyddir wrth gynhyrchu delweddau.
guidance_scaledewisol
Mathnumber
Rhagosodedig3.5
0 – 20
Graddfa ar gyfer arweiniad heb ddosbarthwr.
num_inference_stepsdewisol
Mathinteger
Rhagosodedig40
20 – 50
Cyfrif camau casglu i'w rhedeg.
noise_sourcedewisol
Mathenum
Rhagosodediggpu
gpucpu
Dewiswch ble caiff sŵn cynhyrchu delwedd ei gyfrifo: mae 'cpu' yn defnyddio'r CPU, tra bod 'gpu' yn defnyddio'r GPU.
enable_safety_checkerdewisol
Mathboolean
Rhagosodedigfalse
Switsh gwirio diogelwch y mae ei osodiad diffodd yn gofyn am awdurdodiad cyfrif. Heb yr awdurdodiad hwnnw, caiff pob cais ei wirio waeth beth fo'r gosodiad; mae true yn galluogi'r gwiriwr.
output_formatdewisol
Mathenum
Rhagosodedigjpeg
jpegpng
Fformat ffeil y ddelwedd sy'n deillio.
gofynnol Enw canonaidd, derbyniol hefyd

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "pony-v7",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 30,
    "usd": "0.03",
    "charged": 30,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string"
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
images
array of object {url, content_type, file_name, file_size, width, height}Delweddau a gynhyrchir gan y model.
timings
object
seed
integerHadau cynhyrchu delweddau, gan gynnwys y gwerth a ddewiswyd ar hap os hepgorodd y mewnbwn hedyn; fel arall, mae'n ailadrodd y gwerth a ddarparwyd.
has_nsfw_concepts
array of booleanYn nodi a yw cysyniadau NSFW yn ymddangos yn y delweddau a gynhyrchir.
prompt
stringAnogiad a ddefnyddir wrth gynhyrchu delweddau.

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/pony-v7.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt