---
title: "Create Image Prediction"
method: POST
path: "/"
---

# Create Image Prediction

`POST /`

## Request

- Base URL: `https://cf-blast.livelikecdn.com/api/v1/image-predictions`
- URL: `https://cf-blast.livelikecdn.com/api/v1/image-predictions/`
- Auth: none required

## Request body

- object
  - `question` string, required: The prompt or question for the prediction to be made
  - `options` object[], required: List of options for this prediction, min 2 and max 4
    - `description` string: The text associated with the prediction option
    - `image_url` string: The URL of the image associated with the option
  - `confirmation_message` string, required: The message shown to someone after they vote for their prediction
  - `program_id` string, required: ID of the program to create the prediction for
  - `interactive_until` string, date: The UTC time that the widget will stop accepting interactions
  - `playback_time_ms` integer: Video playback time in milliseconds
  - `custom_data` string
  - `widget_attributes` object[]
    - `key` string
    - `value` string
  - `sponsor_ids` string[]: Links the ```sponsors``` with this Image Prediction. Note that only valid sponsor_ids will be linked to a Image Prediction.

## Response `201`

201

- object
  - `client_id` string
  - `confirmation_message` string
  - `created_at` string
  - `created_by` object
    - `id` string
    - `image_url` unknown
    - `name` unknown
  - `custom_data` unknown
  - `engagement_count` integer
  - `engagement_percent` string
  - `follow_up_url` string
  - `follow_ups` object[]
    - `claim_url` string
    - `client_id` string
    - `correct_option_id` string
    - `created_at` string
    - `created_by` object
      - `id` string
      - `image_url` unknown
      - `name` unknown
    - `custom_data` unknown
    - `engagement_count` unknown
    - `engagement_percent` unknown
    - `id` string
    - `image_prediction_id` string
    - `image_prediction_url` string
    - `impression_count` integer
    - `impression_url` string
    - `interaction_url` string
    - `interactive_until` unknown
    - `kind` string
    - `options` object[]
      - `description` string
      - `id` string
      - `image_url` string
      - `is_correct` boolean
      - `translatable_fields` string[]
      - `translations` object
      - `url` string
      - `vote_count` integer
      - `vote_url` string
    - `program_date_time` unknown
    - `program_id` string
    - `publish_delay` string
    - `published_at` string
    - `question` string
    - `reactions` unknown[]
      - unknown
    - `rewards_url` unknown
    - `schedule_url` string
    - `scheduled_at` string
    - `sponsors` unknown[]
      - unknown
    - `status` string
    - `subscribe_channel` string
    - `timeout` string
    - `translatable_fields` unknown[]
      - unknown
    - `translations` object
    - `unique_impression_count` integer
    - `url` string
    - `widget_interactions_url_template` string
  - `id` string
  - `impression_count` integer
  - `impression_url` string
  - `interaction_url` string
  - `interactive_until` string
  - `kind` string
  - `options` object[]
    - `description` string
    - `id` string
    - `image_url` string
    - `is_correct` boolean
    - `translatable_fields` string[]
    - `translations` object
    - `url` string
    - `vote_count` integer
    - `vote_url` string
  - `program_date_time` unknown
  - `program_id` string
  - `publish_delay` string
  - `published_at` string
  - `question` string
  - `reactions` unknown[]
    - unknown
  - `rewards_url` unknown
  - `schedule_url` string
  - `scheduled_at` string
  - `sponsors` unknown[]
    - unknown
  - `status` string
  - `subscribe_channel` string
  - `timeout` string
  - `translatable_fields` string[]
  - `translations` object
  - `unique_impression_count` integer
  - `playback_time_ms` unknown
  - `url` string
  - `widget_interactions_url_template` string

---

[API](https://skmtc.dev/livelike/apis/image-predictions.md) - [All operations](https://skmtc.dev/livelike/apis/image-predictions/llms.txt) - [OpenAPI document](https://skmtc.dev/livelike/apis/image-predictions/revisions/0fbb5012ce5a?raw)
