How does the API work? | AI Ark