Peke ki ngā ihirangi

Stepx Edit2

Whakauru

id tauira stepx-edit2
# 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/stepx-edit2?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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"

Tēnei tono: ≈$ 0.20 200 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API

He ētita whakaahua e hāngai ana ki ngā tohutohu, me ngā wāhanga thinking me reflection hei kōwhiringa mō ngā whakarerekētanga waitara

StepFun · Atahanga

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana

Te tohutohu e ārahi ana i te whakaputanga atahanga.

•e hiahiatia ana image_url
Whakataka he kōnae,

Whakaratohia te pūtake whakaputanga hei URL atahanga, me whakarite kia ōrite ngā rahinga o te atahanga pūtake me te kanohi.

Arā atu negative_prompt · output_format · guidance_scale · num_inference_steps · seed · enable_thinking_mode · enable_reflection_mode · enable_safety_checker
taunoa

Tohutohu tōraro e tohu ana i ngā taipitopito atahanga hei aukati, tae atu ki ngā tae, ngā mea, te whenua, me ngā āhuatanga iti. Hei tauira ko te ngutu tāne, te pōuri, te taumira iti rānei.

output_format taunoa jpeg

Te hōputu kōnae mō te atahanga ka puta.

taunoa 6

Te tauine CFG tūturu e whakahaere ana i te taumata whai o te tauira ki te tohutohu.

taunoa 50

Te tatau hīkoi inference; e tūtohua ana te 50.

Kākano mō ngā atahanga ka taea te whakahoki anō: mā te tohutohu me te kākano ōrite ka puta he atahanga ōrite ina kāore te putanga tauira i whakarerekēhia.

POST /run/stepx-edit2?wait=20 utu → $ 0.20
# 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/stepx-edit2?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Stepx Edit2

Ka whakatika i te pikitia kei `image_url` e whai ana i tētahi `prompt`. Mā `enable_thinking_mode` e whakamahi he tauira reo multimodal hei whakamāori i ngā tohutohu ariā, ā, mā `enable_reflection_mode` e arotake te hua me te whakatika i ngā panonitanga kāore i whakaarotia. Ka taea e te whakautu te whakauru i `reformat_prompt`, `think_info` me `best_info`. Ka eke ngā kaupae ki te 100 (50 te taunoa), ā, ko te putanga he jpeg, png rānei.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
prompte hiahiatia ana
Momostring
Te tohutohu e ārahi ana i te whakaputanga atahanga.
image_urle hiahiatia ana image
Momourl · image
Whakaratohia te pūtake whakaputanga hei URL atahanga, me whakarite kia ōrite ngā rahinga o te atahanga pūtake me te kanohi.
negative_promptkōwhiringa
Momostring
Taunoa
Tohutohu tōraro e tohu ana i ngā taipitopito atahanga hei aukati, tae atu ki ngā tae, ngā mea, te whenua, me ngā āhuatanga iti. Hei tauira ko te ngutu tāne, te pōuri, te taumira iti rānei.
seedkōwhiringa
Momointeger | null
Kākano mō ngā atahanga ka taea te whakahoki anō: mā te tohutohu me te kākano ōrite ka puta he atahanga ōrite ina kāore te putanga tauira i whakarerekēhia.
guidance_scalekōwhiringa
Momonumber
Taunoa6
0 – 20
Te tauine CFG tūturu e whakahaere ana i te taumata whai o te tauira ki te tohutohu.
num_inference_stepskōwhiringa
Momointeger
Taunoa50
1 – 100
Te tatau hīkoi inference; e tūtohua ana te 50.
enable_thinking_modekōwhiringa
Momoboolean
Taunoatrue
Whakakāhia te aratau whakaaro kia whakamahia ai te mātauranga o tētahi tauira reo multimodal ki ngā tohutohu waitara mō te whakatika.
enable_reflection_modekōwhiringa
Momoboolean
Taunoatrue
Ka tirohia e te aratau whakaata mēnā ka taea te whakamutu i te whakatika mā te aromātai i ngā hua me te whakatika i ngā panoni kāore i te whāia.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Whakahohe kaitaki haumaru; mā true e whakahohe te tirotiro.
output_formatkōwhiringa
Momoenum
Taunoajpeg
jpegpng
Te hōputu kōnae mō te atahanga ka puta.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "stepx-edit2",
  "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": 200,
    "usd": "0.20",
    "charged": 200,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "width": 1024,
        "height": 768,
        "content_type": "image/jpeg"
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string",
    "reformat_prompt": "string",
    "think_info": [
      "string"
    ],
    "best_info": [
      {}
    ]
  },
  "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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
images
array of object {url, width, height, content_type}Ngā atahanga i whakaputaina e te tauira.
timings
object
seed
integerKākano whakaputa atahanga, tae atu ki te uara i kōwhiria matapōkeretia mēnā kāore i tukuna he kākano ki te tāuru; ki te kore, ka tukurua te uara i tukuna.
has_nsfw_concepts
array of booleanKa tohu mēnā ka puta ngā ariā NSFW i ngā atahanga kua whakaputaina.
prompt
stringTe tohutohu e whakamahia ana i te whakaputanga atahanga.
reformat_prompt
string | nullIna whakakāngia te aratau whakaaro, kei roto i te whakautu te āhua o te māramatanga o te tauira ki tō tohutohu; ki te kore, kāore tēnei whakamāramatanga e wātea.
think_info
array of string | nullNgā taipitopito o te tukanga whakaaro, ka wātea ina whakakāngia te aratau whakaaro anake.
best_info
array of object | nullTe tātari mai i te whakaata, ka wātea ina whakakāngia te aratau whakaata anake.

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/stepx-edit2.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt