According to https://www.anthropic.com/pricing#claude-ai-plans, FREE tier only allows to "Talk to Claude on the web" and such. There is no FREE tier for API usage as per https://www.anthropic.com/pricing#anthropic-api, therefore you was asked for credits right from the start.