PhotoGPT Developers

Trigger model training

GET
/models/{modelID}/train

Initiates training for the specified model if image count, access, and plan limits allow.

This endpoint does not return a pollable generation jobId. Poll GET /models/{modelID} and inspect result.status for the model training lifecycle.

Authorization

BearerAuth
AuthorizationBearer <token>

Developer API key. Send as Authorization: Bearer <api_key>.

In: header

Path Parameters

modelID*string

Model ID

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/models/string/train"
{  "result": "Training triggered",  "status": "OK"}
{  "err": "string",  "message": "string",  "result": null,  "status": "NOK"}
{  "err": "string",  "message": "string",  "result": null,  "status": "NOK"}
{  "err": "string",  "message": "string",  "result": null,  "status": "NOK"}
{  "err": "string",  "message": "string",  "result": null,  "status": "NOK"}
{  "err": "string",  "message": "string",  "result": null,  "status": "NOK"}