App - Generation Model

When the App receives a request from a user, it sends an API request to the Generation Model Endpoint with the following data:

  • Generation Model API Endpoint Example:

POST http://127.0.0.1:8000/generation_model
  • Example request from App to Generation Model:

curl --request POST \
  --url http://127.0.0.1:8000/generation_model \
  --header 'Content-Type: application/json' \
  --data '{
    "uaaid": "0xF9F36dC75eAfc38f5e6525fadbA2939FCbC666e0",
    "identity_contract_address": "0x3cDfD20F5AA27335bE4A68d0e1B1085A65418b09",
    "app_token_id": "123456",
    "prompt": "Hello?",
    "callback_url": "http://127.0.0.1:8000/app"
}'

Last updated