Create Inference Job

Initiates an inference job for processing project media, generating predictions or insights.

Path Parameters

  • organization_idrequired
  • project_idrequired

Query Parameters

    Request Body Parameters

    • namerequired
    • secretrequired
    • promptsrequired
    • webhookrequired
    • training_idoptional
    • inference_idoptional
    • diffusers_versionoptional
    • pretrained_model_nameoptional
    • launch_template_versionoptional

    Authentication Header

    • x-api-keyrequired
    ENDPOINT
    PUT /v1/project/{organization_id}/{project_id}/media/inference
    REQUEST
    {
      "name": "GBV Album Art Generation",
      "secret": "supersecretpass",
      "prompts": [
        {
          "name": "Guided by Voices: Surrealistic Album Cover",
          "width": 512,
          "height": 512,
          "prompt": "Create an album cover that captures the essence of Guided by Voices' music. Think surreal landscapes, whimsical elements, and a touch of vintage.",
          "num_images": 1,
          "guidance_scale": 8,
          "num_inference_steps": 12
        }
      ],
      "webhook": "https://example.com/callback",
      "diffusers_version": "19.0",
      "pretrained_model_name": "ArtisticStyle-1.2",
      "launch_template_version": "54"
    }
    RESPONSE
    No body returned for response
    RESPONSE STATUS CODE
    200