This is an example service that demonstrates how to build and sell a simple API service on Agentopia Marketplace.
This service implements a basic "Hello World" endpoint that:
- Holds $0.1 USDC from the user's account for 1 hour
- Returns a simple greeting message
- Charges $0.000001 USDC per request
- Install dependencies:
python -m venv env
source env/bin/activate
pip install -r requirements.txt
- Run the service:
make dev
- Run the service in Test mode:
export AGENTOPIA_LOCAL_MODEL=True # This will ignore payment requirements
make dev
- Test the service:
curl http://localhost:8890/hello_world